pub struct BoxedRefMut<'r, T: Boxed> {
    pub(crate) reference: T,
    referenced_object: PhantomData<&'r mut T>,
}
Expand description

Mutable version of BoxedRef, implements the traits that take &mut self.

Fields§

§reference: T§referenced_object: PhantomData<&'r mut T>

Implementations§

source§

impl<T: Boxed + Clone> BoxedRefMut<'_, T>

source

pub fn clone_pointee(&self) -> T

Clones the pointee of this BoxedRef

Trait Implementations§

source§

impl AbsLayerTrait for BoxedRefMut<'_, AbsLayer>

source§

fn as_raw_mut_AbsLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl AbsLayerTraitConst for BoxedRefMut<'_, AbsLayer>

source§

fn as_raw_AbsLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl AccumLayerTrait for BoxedRefMut<'_, AccumLayer>

source§

fn as_raw_mut_AccumLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl AccumLayerTraitConst for BoxedRefMut<'_, AccumLayer>

source§

fn as_raw_AccumLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ActivationLayerInt8Trait for BoxedRefMut<'_, ActivationLayerInt8>

source§

fn as_raw_mut_ActivationLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerInt8TraitConst for BoxedRefMut<'_, ActivationLayerInt8>

source§

fn as_raw_ActivationLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ActivationLayerTrait for BoxedRefMut<'_, AbsLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, ActivationLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, ActivationLayerInt8>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, BNLLLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, BatchNormLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, ELULayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, ExpLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, MishLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, PowerLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, ReLU6Layer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, ReLULayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, SigmoidLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, SwishLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTrait for BoxedRefMut<'_, TanHLayer>

source§

fn as_raw_mut_ActivationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, AbsLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, ActivationLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, ActivationLayerInt8>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, BNLLLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, BatchNormLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, ELULayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, ExpLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, MishLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, PowerLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, ReLU6Layer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, ReLULayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, SigmoidLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, SwishLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl ActivationLayerTraitConst for BoxedRefMut<'_, TanHLayer>

source§

fn as_raw_ActivationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn forward_slice( &self, src: &[f32], dst: &mut [f32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

fn forward_slice_1( &self, src: &[i32], lut: &[i32], dst: &mut [i32], out_plane_size: size_t, cn0: i32, cn1: i32 ) -> Result<()>

source§

impl AlgorithmTrait for BoxedRefMut<'_, AbsLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, AccumLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ActivationLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ActivationLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, Algorithm>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, BNLLLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, BaseConvolutionLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, BatchNormLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, BlankLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, CLAHE>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ChannelsPReLULayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ConcatLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ConjGradSolver>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ConstLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ConvolutionLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, CorrelationLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, CropAndResizeLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, CropLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, CumSumLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, DataAugmentationLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, DeconvolutionLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, DequantizeLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, DetectionOutputLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, DownhillSolver>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ELULayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, EltwiseLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, EltwiseLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ExpLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, FlattenLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, FlowWarpLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, GRULayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHough>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHoughBallard>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, GeneralizedHoughGuil>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, InnerProductLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, InnerProductLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, InterpLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, LRNLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, LSTMLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, Layer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, LineSegmentDetector>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, MVNLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, MaxUnpoolLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, MinProblemSolver>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, MishLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, NormalizeBBoxLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, PaddingLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, PermuteLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, PoolingLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, PoolingLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, PowerLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, PriorBoxLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ProposalLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, QuantizeLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, RNNLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ReLU6Layer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ReLULayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, RegionLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ReorgLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, RequantizeLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ReshapeLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ResizeLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ScaleLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ScaleLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ShiftLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ShiftLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, ShuffleChannelLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, SigmoidLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, SliceLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, SoftmaxLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, SplitLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, SwishLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTrait for BoxedRefMut<'_, TanHLayer>

source§

fn as_raw_mut_Algorithm( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn clear(&mut self) -> Result<()>

Clears the algorithm state
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

Reads algorithm parameters from a file storage
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, AbsLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, AccumLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ActivationLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ActivationLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, Algorithm>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, BNLLLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, BatchNormLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, BlankLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, CLAHE>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ConcatLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ConjGradSolver>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ConstLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ConvolutionLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, CorrelationLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, CropAndResizeLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, CropLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, CumSumLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, DataAugmentationLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, DeconvolutionLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, DequantizeLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, DetectionOutputLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, DownhillSolver>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ELULayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, EltwiseLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, EltwiseLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ExpLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, FlattenLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, FlowWarpLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, GRULayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHough>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, InnerProductLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, InnerProductLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, InterpLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, LRNLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, LSTMLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, Layer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, LineSegmentDetector>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, MVNLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, MinProblemSolver>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, MishLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, PaddingLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, PermuteLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, PoolingLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, PoolingLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, PowerLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, PriorBoxLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ProposalLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, QuantizeLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, RNNLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ReLU6Layer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ReLULayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, RegionLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ReorgLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, RequantizeLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ReshapeLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ResizeLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ScaleLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ScaleLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ShiftLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ShiftLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, ShuffleChannelLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, SigmoidLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, SliceLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, SoftmaxLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, SplitLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, SwishLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl AlgorithmTraitConst for BoxedRefMut<'_, TanHLayer>

source§

fn as_raw_Algorithm(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Stores algorithm parameters in a file storage
source§

fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>

simplified API for language bindings Stores algorithm parameters in a file storage Read more
source§

fn write_with_name_def(&self, fs: &Ptr<FileStorage>) -> Result<()>

simplified API for language bindings @overload Read more
source§

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§

impl ArraysTrait for BoxedRefMut<'_, Arrays>

source§

fn as_raw_mut_Arrays( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_vertex_array(&mut self, vertex: &impl ToInputArray) -> Result<()>

Sets an array of vertex coordinates. Read more
source§

fn reset_vertex_array(&mut self) -> Result<()>

Resets vertex coordinates.
source§

fn set_color_array(&mut self, color: &impl ToInputArray) -> Result<()>

Sets an array of vertex colors. Read more
source§

fn reset_color_array(&mut self) -> Result<()>

Resets vertex colors.
source§

fn set_normal_array(&mut self, normal: &impl ToInputArray) -> Result<()>

Sets an array of vertex normals. Read more
source§

fn reset_normal_array(&mut self) -> Result<()>

Resets vertex normals.
source§

fn set_tex_coord_array(&mut self, tex_coord: &impl ToInputArray) -> Result<()>

Sets an array of vertex texture coordinates. Read more
source§

fn reset_tex_coord_array(&mut self) -> Result<()>

Resets vertex texture coordinates.
source§

fn release(&mut self) -> Result<()>

Releases all inner buffers.
source§

fn set_auto_release(&mut self, flag: bool) -> Result<()>

Sets auto release mode all inner buffers. Read more
source§

impl ArraysTraitConst for BoxedRefMut<'_, Arrays>

source§

fn as_raw_Arrays(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn bind(&self) -> Result<()>

Binds all vertex arrays.
source§

fn size(&self) -> Result<i32>

Returns the vertex count.
source§

fn empty(&self) -> Result<bool>

source§

impl AsyncArrayTrait for BoxedRefMut<'_, AsyncArray>

source§

fn as_raw_mut_AsyncArray( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, o: &impl AsyncArrayTraitConst)

source§

fn release(&mut self)

source§

fn set_1(&mut self, o: AsyncArray)

source§

impl AsyncArrayTraitConst for BoxedRefMut<'_, AsyncArray>

source§

fn as_raw_AsyncArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get(&self, dst: &mut impl ToOutputArray) -> Result<()>

Fetch the result. Read more
source§

fn get_with_timeout( &self, dst: &mut impl ToOutputArray, timeout_ns: i64 ) -> Result<bool>

Retrieving the result with timeout Read more
source§

fn get_with_timeout_f64( &self, dst: &mut impl ToOutputArray, timeout_ns: f64 ) -> Result<bool>

source§

fn wait_for(&self, timeout_ns: i64) -> Result<bool>

source§

fn wait_for_f64(&self, timeout_ns: f64) -> Result<bool>

source§

fn valid(&self) -> bool

source§

impl AsyncPromiseTrait for BoxedRefMut<'_, AsyncPromise>

source§

fn as_raw_mut_AsyncPromise( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, o: &impl AsyncPromiseTraitConst)

source§

fn release(&mut self)

source§

fn get_array_result(&mut self) -> Result<AsyncArray>

Returns associated AsyncArray Read more
source§

fn set_value(&mut self, value: &impl ToInputArray) -> Result<()>

Stores asynchronous result. Read more
source§

fn set_exception(&mut self, exception: &impl ExceptionTraitConst) -> Result<()>

Stores exception. Read more
source§

fn set_1(&mut self, o: AsyncPromise)

source§

impl AsyncPromiseTraitConst for BoxedRefMut<'_, AsyncPromise>

source§

fn as_raw_AsyncPromise(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn _get_impl(&self) -> *mut c_void

source§

impl BNLLLayerTrait for BoxedRefMut<'_, BNLLLayer>

source§

fn as_raw_mut_BNLLLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl BNLLLayerTraitConst for BoxedRefMut<'_, BNLLLayer>

source§

fn as_raw_BNLLLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl BackendNodeTrait for BoxedRefMut<'_, BackendNode>

source§

fn as_raw_mut_BackendNode( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_backend_id(&mut self, val: i32)

Backend identifier.
source§

impl BackendNodeTraitConst for BoxedRefMut<'_, BackendNode>

source§

fn as_raw_BackendNode(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn backend_id(&self) -> i32

Backend identifier.
source§

impl BackendWrapperTrait for BoxedRefMut<'_, BackendWrapper>

source§

fn as_raw_mut_BackendWrapper( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_backend_id(&mut self, val: i32)

Backend identifier.
source§

fn set_target_id(&mut self, val: i32)

Target identifier.
source§

fn copy_to_host(&mut self) -> Result<()>

Transfer data to CPU host memory.
source§

fn set_host_dirty(&mut self) -> Result<()>

Indicate that an actual data is on CPU.
source§

impl BackendWrapperTraitConst for BoxedRefMut<'_, BackendWrapper>

source§

fn as_raw_BackendWrapper( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn backend_id(&self) -> i32

Backend identifier.
source§

fn target_id(&self) -> i32

Target identifier.
source§

impl BaseConvolutionLayerTrait for BoxedRefMut<'_, BaseConvolutionLayer>

source§

fn as_raw_mut_BaseConvolutionLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_kernel(&mut self, val: Size)

source§

fn set_stride(&mut self, val: Size)

source§

fn set_pad(&mut self, val: Size)

source§

fn set_dilation(&mut self, val: Size)

source§

fn set_adjust_pad(&mut self, val: Size)

source§

fn set_adjust_pads(&mut self, val: Vector<size_t>)

source§

fn set_kernel_size(&mut self, val: Vector<size_t>)

source§

fn set_strides(&mut self, val: Vector<size_t>)

source§

fn set_dilations(&mut self, val: Vector<size_t>)

source§

fn set_pads_begin(&mut self, val: Vector<size_t>)

source§

fn set_pads_end(&mut self, val: Vector<size_t>)

source§

fn set_pad_mode(&mut self, val: &str)

source§

fn set_num_output(&mut self, val: i32)

source§

impl BaseConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayer>

source§

fn as_raw_mut_BaseConvolutionLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_kernel(&mut self, val: Size)

source§

fn set_stride(&mut self, val: Size)

source§

fn set_pad(&mut self, val: Size)

source§

fn set_dilation(&mut self, val: Size)

source§

fn set_adjust_pad(&mut self, val: Size)

source§

fn set_adjust_pads(&mut self, val: Vector<size_t>)

source§

fn set_kernel_size(&mut self, val: Vector<size_t>)

source§

fn set_strides(&mut self, val: Vector<size_t>)

source§

fn set_dilations(&mut self, val: Vector<size_t>)

source§

fn set_pads_begin(&mut self, val: Vector<size_t>)

source§

fn set_pads_end(&mut self, val: Vector<size_t>)

source§

fn set_pad_mode(&mut self, val: &str)

source§

fn set_num_output(&mut self, val: i32)

source§

impl BaseConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

fn as_raw_mut_BaseConvolutionLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_kernel(&mut self, val: Size)

source§

fn set_stride(&mut self, val: Size)

source§

fn set_pad(&mut self, val: Size)

source§

fn set_dilation(&mut self, val: Size)

source§

fn set_adjust_pad(&mut self, val: Size)

source§

fn set_adjust_pads(&mut self, val: Vector<size_t>)

source§

fn set_kernel_size(&mut self, val: Vector<size_t>)

source§

fn set_strides(&mut self, val: Vector<size_t>)

source§

fn set_dilations(&mut self, val: Vector<size_t>)

source§

fn set_pads_begin(&mut self, val: Vector<size_t>)

source§

fn set_pads_end(&mut self, val: Vector<size_t>)

source§

fn set_pad_mode(&mut self, val: &str)

source§

fn set_num_output(&mut self, val: i32)

source§

impl BaseConvolutionLayerTrait for BoxedRefMut<'_, DeconvolutionLayer>

source§

fn as_raw_mut_BaseConvolutionLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_kernel(&mut self, val: Size)

source§

fn set_stride(&mut self, val: Size)

source§

fn set_pad(&mut self, val: Size)

source§

fn set_dilation(&mut self, val: Size)

source§

fn set_adjust_pad(&mut self, val: Size)

source§

fn set_adjust_pads(&mut self, val: Vector<size_t>)

source§

fn set_kernel_size(&mut self, val: Vector<size_t>)

source§

fn set_strides(&mut self, val: Vector<size_t>)

source§

fn set_dilations(&mut self, val: Vector<size_t>)

source§

fn set_pads_begin(&mut self, val: Vector<size_t>)

source§

fn set_pads_end(&mut self, val: Vector<size_t>)

source§

fn set_pad_mode(&mut self, val: &str)

source§

fn set_num_output(&mut self, val: i32)

source§

impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>

source§

fn as_raw_BaseConvolutionLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn kernel(&self) -> Size

source§

fn stride(&self) -> Size

source§

fn pad(&self) -> Size

source§

fn dilation(&self) -> Size

source§

fn adjust_pad(&self) -> Size

source§

fn adjust_pads(&self) -> Vector<size_t>

source§

fn kernel_size(&self) -> Vector<size_t>

source§

fn strides(&self) -> Vector<size_t>

source§

fn dilations(&self) -> Vector<size_t>

source§

fn pads_begin(&self) -> Vector<size_t>

source§

fn pads_end(&self) -> Vector<size_t>

source§

fn pad_mode(&self) -> String

source§

fn num_output(&self) -> i32

source§

impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>

source§

fn as_raw_BaseConvolutionLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn kernel(&self) -> Size

source§

fn stride(&self) -> Size

source§

fn pad(&self) -> Size

source§

fn dilation(&self) -> Size

source§

fn adjust_pad(&self) -> Size

source§

fn adjust_pads(&self) -> Vector<size_t>

source§

fn kernel_size(&self) -> Vector<size_t>

source§

fn strides(&self) -> Vector<size_t>

source§

fn dilations(&self) -> Vector<size_t>

source§

fn pads_begin(&self) -> Vector<size_t>

source§

fn pads_end(&self) -> Vector<size_t>

source§

fn pad_mode(&self) -> String

source§

fn num_output(&self) -> i32

source§

impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

fn as_raw_BaseConvolutionLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn kernel(&self) -> Size

source§

fn stride(&self) -> Size

source§

fn pad(&self) -> Size

source§

fn dilation(&self) -> Size

source§

fn adjust_pad(&self) -> Size

source§

fn adjust_pads(&self) -> Vector<size_t>

source§

fn kernel_size(&self) -> Vector<size_t>

source§

fn strides(&self) -> Vector<size_t>

source§

fn dilations(&self) -> Vector<size_t>

source§

fn pads_begin(&self) -> Vector<size_t>

source§

fn pads_end(&self) -> Vector<size_t>

source§

fn pad_mode(&self) -> String

source§

fn num_output(&self) -> i32

source§

impl BaseConvolutionLayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>

source§

fn as_raw_BaseConvolutionLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn kernel(&self) -> Size

source§

fn stride(&self) -> Size

source§

fn pad(&self) -> Size

source§

fn dilation(&self) -> Size

source§

fn adjust_pad(&self) -> Size

source§

fn adjust_pads(&self) -> Vector<size_t>

source§

fn kernel_size(&self) -> Vector<size_t>

source§

fn strides(&self) -> Vector<size_t>

source§

fn dilations(&self) -> Vector<size_t>

source§

fn pads_begin(&self) -> Vector<size_t>

source§

fn pads_end(&self) -> Vector<size_t>

source§

fn pad_mode(&self) -> String

source§

fn num_output(&self) -> i32

source§

impl BatchNormLayerInt8Trait for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_mut_BatchNormLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_input_sc(&mut self, val: f32)

source§

fn set_output_sc(&mut self, val: f32)

source§

fn set_input_zp(&mut self, val: i32)

source§

fn set_output_zp(&mut self, val: i32)

source§

impl BatchNormLayerInt8TraitConst for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_BatchNormLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn input_sc(&self) -> f32

source§

fn output_sc(&self) -> f32

source§

fn input_zp(&self) -> i32

source§

fn output_zp(&self) -> i32

source§

impl BatchNormLayerTrait for BoxedRefMut<'_, BatchNormLayer>

source§

fn as_raw_mut_BatchNormLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_has_weights(&mut self, val: bool)

source§

fn set_has_bias(&mut self, val: bool)

source§

fn set_epsilon(&mut self, val: f32)

source§

impl BatchNormLayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_mut_BatchNormLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_has_weights(&mut self, val: bool)

source§

fn set_has_bias(&mut self, val: bool)

source§

fn set_epsilon(&mut self, val: f32)

source§

impl BatchNormLayerTraitConst for BoxedRefMut<'_, BatchNormLayer>

source§

fn as_raw_BatchNormLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn has_weights(&self) -> bool

source§

fn has_bias(&self) -> bool

source§

fn epsilon(&self) -> f32

source§

impl BatchNormLayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_BatchNormLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn has_weights(&self) -> bool

source§

fn has_bias(&self) -> bool

source§

fn epsilon(&self) -> f32

source§

impl BlankLayerTrait for BoxedRefMut<'_, BlankLayer>

source§

fn as_raw_mut_BlankLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl BlankLayerTraitConst for BoxedRefMut<'_, BlankLayer>

source§

fn as_raw_BlankLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl BufferPoolTrait for BoxedRefMut<'_, BufferPool>

source§

fn as_raw_mut_BufferPool( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn get_buffer(&mut self, rows: i32, cols: i32, typ: i32) -> Result<GpuMat>

Allocates a new GpuMat of given size and type.
source§

fn get_buffer_1(&mut self, size: Size, typ: i32) -> Result<GpuMat>

Allocates a new GpuMat of given size and type.
source§

impl BufferPoolTraitConst for BoxedRefMut<'_, BufferPool>

source§

fn as_raw_BufferPool(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_allocator(&self) -> Result<Ptr<GpuMat_Allocator>>

Returns the allocator associated with the stream.
source§

impl BufferTrait for BoxedRefMut<'_, Buffer>

source§

fn as_raw_mut_Buffer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn create( &mut self, arows: i32, acols: i32, atype: i32, target: Buffer_Target, auto_release: bool ) -> Result<()>

Allocates memory for ogl::Buffer object. Read more
source§

fn create_def(&mut self, arows: i32, acols: i32, atype: i32) -> Result<()>

Allocates memory for ogl::Buffer object. Read more
source§

fn create_size( &mut self, asize: Size, atype: i32, target: Buffer_Target, auto_release: bool ) -> Result<()>

Allocates memory for ogl::Buffer object. Read more
source§

fn create_size_def(&mut self, asize: Size, atype: i32) -> Result<()>

@overload Read more
source§

fn release(&mut self) -> Result<()>

Decrements the reference counter and destroys the buffer object if needed. Read more
source§

fn set_auto_release(&mut self, flag: bool) -> Result<()>

Sets auto release mode. Read more
source§

fn copy_from( &mut self, arr: &impl ToInputArray, target: Buffer_Target, auto_release: bool ) -> Result<()>

Copies from host/device memory to OpenGL buffer. Read more
source§

fn copy_from_def(&mut self, arr: &impl ToInputArray) -> Result<()>

Copies from host/device memory to OpenGL buffer. Read more
source§

fn copy_from_1( &mut self, arr: &impl ToInputArray, stream: &mut impl StreamTrait, target: Buffer_Target, auto_release: bool ) -> Result<()>

Copies from host/device memory to OpenGL buffer. Read more
source§

fn copy_from_def_1( &mut self, arr: &impl ToInputArray, stream: &mut impl StreamTrait ) -> Result<()>

@overload Read more
source§

fn map_host(&mut self, access: Buffer_Access) -> Result<Mat>

Maps OpenGL buffer to host memory. Read more
source§

fn unmap_host(&mut self) -> Result<()>

Unmaps OpenGL buffer.
source§

fn map_device(&mut self) -> Result<GpuMat>

map to device memory (blocking)
source§

fn unmap_device(&mut self) -> Result<()>

source§

fn map_device_1(&mut self, stream: &mut impl StreamTrait) -> Result<GpuMat>

Maps OpenGL buffer to CUDA device memory. Read more
source§

fn unmap_device_1(&mut self, stream: &mut impl StreamTrait) -> Result<()>

Unmaps OpenGL buffer.
source§

impl BufferTraitConst for BoxedRefMut<'_, Buffer>

source§

fn as_raw_Buffer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>

Copies from OpenGL buffer to host/device memory or another OpenGL buffer object. Read more
source§

fn copy_to_1( &self, arr: &mut impl ToOutputArray, stream: &mut impl StreamTrait ) -> Result<()>

Copies from OpenGL buffer to host/device memory or another OpenGL buffer object. Read more
source§

fn clone(&self, target: Buffer_Target, auto_release: bool) -> Result<Buffer>

Creates a full copy of the buffer object and the underlying data. Read more
source§

fn clone_def(&self) -> Result<Buffer>

Creates a full copy of the buffer object and the underlying data. Read more
source§

fn bind(&self, target: Buffer_Target) -> Result<()>

Binds OpenGL buffer to the specified buffer binding point. Read more
source§

fn rows(&self) -> Result<i32>

source§

fn cols(&self) -> Result<i32>

source§

fn size(&self) -> Result<Size>

source§

fn empty(&self) -> Result<bool>

source§

fn typ(&self) -> Result<i32>

source§

fn depth(&self) -> Result<i32>

source§

fn channels(&self) -> Result<i32>

source§

fn elem_size(&self) -> Result<i32>

source§

fn elem_size1(&self) -> Result<i32>

source§

fn buf_id(&self) -> Result<u32>

get OpenGL opject id
source§

impl CLAHETrait for BoxedRefMut<'_, CLAHE>

source§

fn as_raw_mut_CLAHE( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn apply( &mut self, src: &impl ToInputArray, dst: &mut impl ToOutputArray ) -> Result<()>

Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization. Read more
source§

fn set_clip_limit(&mut self, clip_limit: f64) -> Result<()>

Sets threshold for contrast limiting. Read more
source§

fn set_tiles_grid_size(&mut self, tile_grid_size: Size) -> Result<()>

Sets size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles. Read more
source§

fn collect_garbage(&mut self) -> Result<()>

source§

impl CLAHETraitConst for BoxedRefMut<'_, CLAHE>

source§

fn as_raw_CLAHE(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_clip_limit(&self) -> Result<f64>

Returns threshold value for contrast limiting.
source§

fn get_tiles_grid_size(&self) -> Result<Size>

Returns Size defines the number of tiles in row and column.
source§

impl ChannelsPReLULayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>

source§

fn as_raw_mut_ChannelsPReLULayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ChannelsPReLULayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>

source§

fn as_raw_ChannelsPReLULayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ClassificationModelTrait for BoxedRefMut<'_, ClassificationModel>

source§

fn as_raw_mut_ClassificationModel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn classify(&mut self, frame: &impl ToInputArray) -> Result<Tuple<(i32, f32)>>

Given the @p input frame, create input blob, run net and return top-1 prediction. Read more
source§

fn classify_1( &mut self, frame: &impl ToInputArray, class_id: &mut i32, conf: &mut f32 ) -> Result<()>

Given the @p input frame, create input blob, run net and return top-1 prediction. Read more
source§

impl ClassificationModelTraitConst for BoxedRefMut<'_, ClassificationModel>

source§

fn as_raw_ClassificationModel( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl CommandLineParserTrait for BoxedRefMut<'_, CommandLineParser>

source§

fn as_raw_mut_CommandLineParser( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, parser: &impl CommandLineParserTraitConst) -> Result<()>

Assignment operator
source§

fn about(&mut self, message: &str) -> Result<()>

Set the about message Read more
source§

impl CommandLineParserTraitConst for BoxedRefMut<'_, CommandLineParser>

source§

fn as_raw_CommandLineParser( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_path_to_application(&self) -> Result<String>

Returns application path Read more
source§

fn get_bool(&self, name: &str, space_delete: bool) -> Result<bool>

Access arguments by name Read more
source§

fn get_bool_def(&self, name: &str) -> Result<bool>

Access arguments by name Read more
source§

fn get_i32(&self, name: &str, space_delete: bool) -> Result<i32>

Access arguments by name Read more
source§

fn get_i32_def(&self, name: &str) -> Result<i32>

Access arguments by name Read more
source§

fn get_f64(&self, name: &str, space_delete: bool) -> Result<f64>

Access arguments by name Read more
source§

fn get_f64_def(&self, name: &str) -> Result<f64>

Access arguments by name Read more
source§

fn get_str(&self, name: &str, space_delete: bool) -> Result<String>

Access arguments by name Read more
source§

fn get_str_def(&self, name: &str) -> Result<String>

Access arguments by name Read more
source§

fn get_u64(&self, name: &str, space_delete: bool) -> Result<u64>

Access arguments by name Read more
source§

fn get_u64_def(&self, name: &str) -> Result<u64>

Access arguments by name Read more
source§

fn get_bool_idx(&self, index: i32, space_delete: bool) -> Result<bool>

Access positional arguments by index Read more
source§

fn get_bool_idx_def(&self, index: i32) -> Result<bool>

Access positional arguments by index Read more
source§

fn get_i32_idx(&self, index: i32, space_delete: bool) -> Result<i32>

Access positional arguments by index Read more
source§

fn get_i32_idx_def(&self, index: i32) -> Result<i32>

Access positional arguments by index Read more
source§

fn get_f64_idx(&self, index: i32, space_delete: bool) -> Result<f64>

Access positional arguments by index Read more
source§

fn get_f64_idx_def(&self, index: i32) -> Result<f64>

Access positional arguments by index Read more
source§

fn get_str_idx(&self, index: i32, space_delete: bool) -> Result<String>

Access positional arguments by index Read more
source§

fn get_str_idx_def(&self, index: i32) -> Result<String>

Access positional arguments by index Read more
source§

fn get_u64_idx(&self, index: i32, space_delete: bool) -> Result<u64>

Access positional arguments by index Read more
source§

fn get_u64_idx_def(&self, index: i32) -> Result<u64>

Access positional arguments by index Read more
source§

fn has(&self, name: &str) -> Result<bool>

Check if field was provided in the command line Read more
source§

fn check(&self) -> Result<bool>

Check for parsing errors Read more
source§

fn print_message(&self) -> Result<()>

Print help message Read more
source§

fn print_errors(&self) -> Result<()>

Print list of errors occurred Read more
source§

impl ConcatLayerTrait for BoxedRefMut<'_, ConcatLayer>

source§

fn as_raw_mut_ConcatLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_axis(&mut self, val: i32)

source§

fn set_padding(&mut self, val: bool)

Add zero padding in case of concatenation of blobs with different spatial sizes. Read more
source§

fn set_padding_value(&mut self, val: i32)

source§

impl ConcatLayerTraitConst for BoxedRefMut<'_, ConcatLayer>

source§

fn as_raw_ConcatLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn axis(&self) -> i32

source§

fn padding(&self) -> bool

Add zero padding in case of concatenation of blobs with different spatial sizes. Read more
source§

fn padding_value(&self) -> i32

source§

impl ConjGradSolverTrait for BoxedRefMut<'_, ConjGradSolver>

source§

fn as_raw_mut_ConjGradSolver( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ConjGradSolverTraitConst for BoxedRefMut<'_, ConjGradSolver>

source§

fn as_raw_ConjGradSolver( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ConstLayerTrait for BoxedRefMut<'_, ConstLayer>

source§

fn as_raw_mut_ConstLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ConstLayerTraitConst for BoxedRefMut<'_, ConstLayer>

source§

fn as_raw_ConstLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ContextTrait for BoxedRefMut<'_, Context>

source§

fn as_raw_mut_Context( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, c: &impl ContextTraitConst) -> Result<()>

source§

fn set_1(&mut self, c: Context)

source§

fn create(&mut self) -> Result<bool>

@deprecated
source§

fn create_with_type(&mut self, dtype: i32) -> Result<bool>

@deprecated
source§

fn get_prog( &mut self, prog: &impl ProgramSourceTraitConst, buildopt: &str, errmsg: &mut String ) -> Result<Program>

source§

fn unload_prog(&mut self, prog: &mut impl ProgramTrait) -> Result<()>

source§

fn set_use_svm(&mut self, enabled: bool) -> Result<()>

source§

fn release(&mut self) -> Result<()>

source§

impl ContextTraitConst for BoxedRefMut<'_, Context>

source§

fn as_raw_Context(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn ndevices(&self) -> Result<size_t>

source§

fn device(&self, idx: size_t) -> Result<Device>

source§

fn ptr(&self) -> Result<*mut c_void>

Returns Read more
source§

fn get_opencl_context_property(&self, property_id: i32) -> Result<*mut c_void>

Get OpenCL context property specified on context creation Read more
source§

fn use_svm(&self) -> Result<bool>

source§

fn empty(&self) -> Result<bool>

source§

impl Context_UserContextTrait for BoxedRefMut<'_, Context_UserContext>

source§

fn as_raw_mut_Context_UserContext( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl Context_UserContextTraitConst for BoxedRefMut<'_, Context_UserContext>

source§

fn as_raw_Context_UserContext( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ConvolutionLayerInt8Trait for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

fn as_raw_mut_ConvolutionLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_input_zp(&mut self, val: i32)

source§

fn set_output_zp(&mut self, val: i32)

source§

fn set_output_sc(&mut self, val: f32)

source§

impl ConvolutionLayerInt8TraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

fn as_raw_ConvolutionLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn input_zp(&self) -> i32

source§

fn output_zp(&self) -> i32

source§

fn output_sc(&self) -> f32

source§

impl ConvolutionLayerTrait for BoxedRefMut<'_, ConvolutionLayer>

source§

fn as_raw_mut_ConvolutionLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ConvolutionLayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>

source§

fn as_raw_ConvolutionLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl CorrelationLayerTrait for BoxedRefMut<'_, CorrelationLayer>

source§

fn as_raw_mut_CorrelationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl CorrelationLayerTraitConst for BoxedRefMut<'_, CorrelationLayer>

source§

fn as_raw_CorrelationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl CropAndResizeLayerTrait for BoxedRefMut<'_, CropAndResizeLayer>

source§

fn as_raw_mut_CropAndResizeLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl CropAndResizeLayerTraitConst for BoxedRefMut<'_, CropAndResizeLayer>

source§

fn as_raw_CropAndResizeLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl CropLayerTrait for BoxedRefMut<'_, CropLayer>

source§

fn as_raw_mut_CropLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl CropLayerTraitConst for BoxedRefMut<'_, CropLayer>

source§

fn as_raw_CropLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl CumSumLayerTrait for BoxedRefMut<'_, CumSumLayer>

source§

fn as_raw_mut_CumSumLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_exclusive(&mut self, val: i32)

source§

fn set_reverse(&mut self, val: i32)

source§

impl CumSumLayerTraitConst for BoxedRefMut<'_, CumSumLayer>

source§

fn as_raw_CumSumLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn exclusive(&self) -> i32

source§

fn reverse(&self) -> i32

source§

impl DataAugmentationLayerTrait for BoxedRefMut<'_, DataAugmentationLayer>

source§

fn as_raw_mut_DataAugmentationLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl DataAugmentationLayerTraitConst for BoxedRefMut<'_, DataAugmentationLayer>

source§

fn as_raw_DataAugmentationLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl<T: Boxed + Debug> Debug for BoxedRefMut<'_, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DeconvolutionLayerTrait for BoxedRefMut<'_, DeconvolutionLayer>

source§

fn as_raw_mut_DeconvolutionLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl DeconvolutionLayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>

source§

fn as_raw_DeconvolutionLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl DequantizeLayerTrait for BoxedRefMut<'_, DequantizeLayer>

source§

fn as_raw_mut_DequantizeLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_scale(&mut self, val: f32)

source§

fn set_zeropoint(&mut self, val: i32)

source§

impl DequantizeLayerTraitConst for BoxedRefMut<'_, DequantizeLayer>

source§

fn as_raw_DequantizeLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn scale(&self) -> f32

source§

fn zeropoint(&self) -> i32

source§

impl Detail_CheckContextTrait for BoxedRefMut<'_, Detail_CheckContext>

source§

fn as_raw_mut_Detail_CheckContext( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_line(&mut self, val: i32)

source§

fn set_test_op(&mut self, val: Detail_TestOp)

source§

impl Detail_CheckContextTraitConst for BoxedRefMut<'_, Detail_CheckContext>

source§

fn as_raw_Detail_CheckContext( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn func(&self) -> String

source§

fn file(&self) -> String

source§

fn line(&self) -> i32

source§

fn test_op(&self) -> Detail_TestOp

source§

fn message(&self) -> String

source§

fn p1_str(&self) -> String

source§

fn p2_str(&self) -> String

source§

impl DetectionModelTrait for BoxedRefMut<'_, DetectionModel>

source§

fn as_raw_mut_DetectionModel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_nms_across_classes(&mut self, value: bool) -> Result<DetectionModel>

nmsAcrossClasses defaults to false, such that when non max suppression is used during the detect() function, it will do so per-class. This function allows you to toggle this behaviour. Read more
source§

fn get_nms_across_classes(&mut self) -> Result<bool>

Getter for nmsAcrossClasses. This variable defaults to false, such that when non max suppression is used during the detect() function, it will do so only per-class
source§

fn detect( &mut self, frame: &impl ToInputArray, class_ids: &mut Vector<i32>, confidences: &mut Vector<f32>, boxes: &mut Vector<Rect>, conf_threshold: f32, nms_threshold: f32 ) -> Result<()>

Given the @p input frame, create input blob, run net and return result detections. Read more
source§

fn detect_def( &mut self, frame: &impl ToInputArray, class_ids: &mut Vector<i32>, confidences: &mut Vector<f32>, boxes: &mut Vector<Rect> ) -> Result<()>

Given the @p input frame, create input blob, run net and return result detections. Read more
source§

impl DetectionModelTraitConst for BoxedRefMut<'_, DetectionModel>

source§

fn as_raw_DetectionModel( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl DetectionOutputLayerTrait for BoxedRefMut<'_, DetectionOutputLayer>

source§

fn as_raw_mut_DetectionOutputLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl DetectionOutputLayerTraitConst for BoxedRefMut<'_, DetectionOutputLayer>

source§

fn as_raw_DetectionOutputLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl DeviceInfoTrait for BoxedRefMut<'_, DeviceInfo>

source§

fn as_raw_mut_DeviceInfo( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl DeviceInfoTraitConst for BoxedRefMut<'_, DeviceInfo>

source§

fn as_raw_DeviceInfo(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn device_id(&self) -> Result<i32>

Returns system index of the CUDA device starting with 0.
source§

fn name(&self) -> Result<String>

ASCII string identifying device
source§

fn total_global_mem(&self) -> Result<size_t>

global memory available on device in bytes
source§

fn shared_mem_per_block(&self) -> Result<size_t>

shared memory available per block in bytes
source§

fn regs_per_block(&self) -> Result<i32>

32-bit registers available per block
source§

fn warp_size(&self) -> Result<i32>

warp size in threads
source§

fn mem_pitch(&self) -> Result<size_t>

maximum pitch in bytes allowed by memory copies
source§

fn max_threads_per_block(&self) -> Result<i32>

maximum number of threads per block
source§

fn max_threads_dim(&self) -> Result<Vec3i>

maximum size of each dimension of a block
source§

fn max_grid_size(&self) -> Result<Vec3i>

maximum size of each dimension of a grid
source§

fn clock_rate(&self) -> Result<i32>

clock frequency in kilohertz
source§

fn total_const_mem(&self) -> Result<size_t>

constant memory available on device in bytes
source§

fn major_version(&self) -> Result<i32>

major compute capability
source§

fn minor_version(&self) -> Result<i32>

minor compute capability
source§

fn texture_alignment(&self) -> Result<size_t>

alignment requirement for textures
source§

fn texture_pitch_alignment(&self) -> Result<size_t>

pitch alignment requirement for texture references bound to pitched memory
source§

fn multi_processor_count(&self) -> Result<i32>

number of multiprocessors on device
source§

fn kernel_exec_timeout_enabled(&self) -> Result<bool>

specified whether there is a run time limit on kernels
source§

fn integrated(&self) -> Result<bool>

device is integrated as opposed to discrete
source§

fn can_map_host_memory(&self) -> Result<bool>

device can map host memory with cudaHostAlloc/cudaHostGetDevicePointer
source§

fn compute_mode(&self) -> Result<DeviceInfo_ComputeMode>

compute mode
source§

fn max_texture1_d(&self) -> Result<i32>

maximum 1D texture size
source§

fn max_texture1_d_mipmap(&self) -> Result<i32>

maximum 1D mipmapped texture size
source§

fn max_texture1_d_linear(&self) -> Result<i32>

maximum size for 1D textures bound to linear memory
source§

fn max_texture_2d(&self) -> Result<Vec2i>

maximum 2D texture dimensions
source§

fn max_texture_2d_mipmap(&self) -> Result<Vec2i>

maximum 2D mipmapped texture dimensions
source§

fn max_texture_2d_linear(&self) -> Result<Vec3i>

maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory
source§

fn max_texture_2d_gather(&self) -> Result<Vec2i>

maximum 2D texture dimensions if texture gather operations have to be performed
source§

fn max_texture_3d(&self) -> Result<Vec3i>

maximum 3D texture dimensions
source§

fn max_texture_cubemap(&self) -> Result<i32>

maximum Cubemap texture dimensions
source§

fn max_texture1_d_layered(&self) -> Result<Vec2i>

maximum 1D layered texture dimensions
source§

fn max_texture_2d_layered(&self) -> Result<Vec3i>

maximum 2D layered texture dimensions
source§

fn max_texture_cubemap_layered(&self) -> Result<Vec2i>

maximum Cubemap layered texture dimensions
source§

fn max_surface1_d(&self) -> Result<i32>

maximum 1D surface size
source§

fn max_surface_2d(&self) -> Result<Vec2i>

maximum 2D surface dimensions
source§

fn max_surface_3d(&self) -> Result<Vec3i>

maximum 3D surface dimensions
source§

fn max_surface1_d_layered(&self) -> Result<Vec2i>

maximum 1D layered surface dimensions
source§

fn max_surface_2d_layered(&self) -> Result<Vec3i>

maximum 2D layered surface dimensions
source§

fn max_surface_cubemap(&self) -> Result<i32>

maximum Cubemap surface dimensions
source§

fn max_surface_cubemap_layered(&self) -> Result<Vec2i>

maximum Cubemap layered surface dimensions
source§

fn surface_alignment(&self) -> Result<size_t>

alignment requirements for surfaces
source§

fn concurrent_kernels(&self) -> Result<bool>

device can possibly execute multiple kernels concurrently
source§

fn ecc_enabled(&self) -> Result<bool>

device has ECC support enabled
source§

fn pci_bus_id(&self) -> Result<i32>

PCI bus ID of the device
source§

fn pci_device_id(&self) -> Result<i32>

PCI device ID of the device
source§

fn pci_domain_id(&self) -> Result<i32>

PCI domain ID of the device
source§

fn tcc_driver(&self) -> Result<bool>

true if device is a Tesla device using TCC driver, false otherwise
source§

fn async_engine_count(&self) -> Result<i32>

number of asynchronous engines
source§

fn unified_addressing(&self) -> Result<bool>

device shares a unified address space with the host
source§

fn memory_clock_rate(&self) -> Result<i32>

peak memory clock frequency in kilohertz
source§

fn memory_bus_width(&self) -> Result<i32>

global memory bus width in bits
source§

fn l2_cache_size(&self) -> Result<i32>

size of L2 cache in bytes
source§

fn max_threads_per_multi_processor(&self) -> Result<i32>

maximum resident threads per multiprocessor
source§

fn query_memory( &self, total_memory: &mut size_t, free_memory: &mut size_t ) -> Result<()>

gets free and total device memory
source§

fn free_memory(&self) -> Result<size_t>

source§

fn total_memory(&self) -> Result<size_t>

source§

fn supports(&self, feature_set: FeatureSet) -> Result<bool>

Provides information on CUDA feature support. Read more
source§

fn is_compatible(&self) -> Result<bool>

Checks the CUDA module and device compatibility. Read more
source§

impl DeviceTrait for BoxedRefMut<'_, Device>

source§

fn as_raw_mut_Device( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, d: &impl DeviceTraitConst) -> Result<()>

source§

fn set_1(&mut self, d: Device)

source§

unsafe fn set_2(&mut self, d: *mut c_void) -> Result<()>

source§

impl DeviceTraitConst for BoxedRefMut<'_, Device>

source§

fn as_raw_Device(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn name(&self) -> Result<String>

source§

fn extensions(&self) -> Result<String>

source§

fn is_extension_supported(&self, extension_name: &str) -> Result<bool>

source§

fn version(&self) -> Result<String>

source§

fn vendor_name(&self) -> Result<String>

source§

fn opencl_c_version(&self) -> Result<String>

source§

fn opencl_version(&self) -> Result<String>

source§

fn device_version_major(&self) -> Result<i32>

source§

fn device_version_minor(&self) -> Result<i32>

source§

fn driver_version(&self) -> Result<String>

source§

fn ptr(&self) -> Result<*mut c_void>

source§

fn typ(&self) -> Result<i32>

source§

fn address_bits(&self) -> Result<i32>

source§

fn available(&self) -> Result<bool>

source§

fn compiler_available(&self) -> Result<bool>

source§

fn linker_available(&self) -> Result<bool>

source§

fn double_fp_config(&self) -> Result<i32>

source§

fn single_fp_config(&self) -> Result<i32>

source§

fn half_fp_config(&self) -> Result<i32>

source§

fn endian_little(&self) -> Result<bool>

source§

fn error_correction_support(&self) -> Result<bool>

source§

fn execution_capabilities(&self) -> Result<i32>

source§

fn global_mem_cache_size(&self) -> Result<size_t>

source§

fn global_mem_cache_type(&self) -> Result<i32>

source§

fn global_mem_cache_line_size(&self) -> Result<i32>

source§

fn global_mem_size(&self) -> Result<size_t>

source§

fn local_mem_size(&self) -> Result<size_t>

source§

fn local_mem_type(&self) -> Result<i32>

source§

fn host_unified_memory(&self) -> Result<bool>

source§

fn image_support(&self) -> Result<bool>

source§

fn image_from_buffer_support(&self) -> Result<bool>

source§

fn image_pitch_alignment(&self) -> Result<u32>

source§

fn image_base_address_alignment(&self) -> Result<u32>

source§

fn intel_subgroups_support(&self) -> Result<bool>

deprecated, use isExtensionSupported() method (probably with “cl_khr_subgroups” value)
source§

fn image_2d_max_width(&self) -> Result<size_t>

source§

fn image_2d_max_height(&self) -> Result<size_t>

source§

fn image_3d_max_width(&self) -> Result<size_t>

source§

fn image_3d_max_height(&self) -> Result<size_t>

source§

fn image_3d_max_depth(&self) -> Result<size_t>

source§

fn image_max_buffer_size(&self) -> Result<size_t>

source§

fn image_max_array_size(&self) -> Result<size_t>

source§

fn vendor_id(&self) -> Result<i32>

source§

fn is_amd(&self) -> Result<bool>

source§

fn is_intel(&self) -> Result<bool>

source§

fn is_n_vidia(&self) -> Result<bool>

source§

fn max_clock_frequency(&self) -> Result<i32>

source§

fn max_compute_units(&self) -> Result<i32>

source§

fn max_constant_args(&self) -> Result<i32>

source§

fn max_constant_buffer_size(&self) -> Result<size_t>

source§

fn max_mem_alloc_size(&self) -> Result<size_t>

source§

fn max_parameter_size(&self) -> Result<size_t>

source§

fn max_read_image_args(&self) -> Result<i32>

source§

fn max_write_image_args(&self) -> Result<i32>

source§

fn max_samplers(&self) -> Result<i32>

source§

fn max_work_group_size(&self) -> Result<size_t>

source§

fn max_work_item_dims(&self) -> Result<i32>

source§

fn max_work_item_sizes(&self, unnamed: &mut size_t) -> Result<()>

source§

fn mem_base_addr_align(&self) -> Result<i32>

source§

fn native_vector_width_char(&self) -> Result<i32>

source§

fn native_vector_width_short(&self) -> Result<i32>

source§

fn native_vector_width_int(&self) -> Result<i32>

source§

fn native_vector_width_long(&self) -> Result<i32>

source§

fn native_vector_width_float(&self) -> Result<i32>

source§

fn native_vector_width_double(&self) -> Result<i32>

source§

fn native_vector_width_half(&self) -> Result<i32>

source§

fn preferred_vector_width_char(&self) -> Result<i32>

source§

fn preferred_vector_width_short(&self) -> Result<i32>

source§

fn preferred_vector_width_int(&self) -> Result<i32>

source§

fn preferred_vector_width_long(&self) -> Result<i32>

source§

fn preferred_vector_width_float(&self) -> Result<i32>

source§

fn preferred_vector_width_double(&self) -> Result<i32>

source§

fn preferred_vector_width_half(&self) -> Result<i32>

source§

fn printf_buffer_size(&self) -> Result<size_t>

source§

fn profiling_timer_resolution(&self) -> Result<size_t>

source§

fn empty(&self) -> Result<bool>

source§

impl DictTrait for BoxedRefMut<'_, Dict>

source§

fn as_raw_mut_Dict( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>

If the @p key in the dictionary then returns pointer to its value, else returns NULL.
source§

fn set_str(&mut self, key: &str, value: &str) -> Result<String>

Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§

fn set( &mut self, key: &str, value: &impl DictValueTraitConst ) -> Result<DictValue>

Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§

fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>

Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§

fn set_i64(&mut self, key: &str, value: &i64) -> Result<i64>

Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§

fn erase(&mut self, key: &str) -> Result<()>

Erase @p key from the dictionary.
source§

impl DictTrait for BoxedRefMut<'_, LayerParams>

source§

fn as_raw_mut_Dict( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

unsafe fn ptr_mut(&mut self, key: &str) -> Result<DictValue>

If the @p key in the dictionary then returns pointer to its value, else returns NULL.
source§

fn set_str(&mut self, key: &str, value: &str) -> Result<String>

Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§

fn set( &mut self, key: &str, value: &impl DictValueTraitConst ) -> Result<DictValue>

Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§

fn set_f64(&mut self, key: &str, value: &f64) -> Result<f64>

Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§

fn set_i64(&mut self, key: &str, value: &i64) -> Result<i64>

Sets new @p value for the @p key, or adds new key-value pair into the dictionary.
source§

fn erase(&mut self, key: &str) -> Result<()>

Erase @p key from the dictionary.
source§

impl DictTraitConst for BoxedRefMut<'_, Dict>

source§

fn as_raw_Dict(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn has(&self, key: &str) -> Result<bool>

Checks a presence of the @p key in the dictionary.
source§

unsafe fn ptr(&self, key: &str) -> Result<DictValue>

If the @p key in the dictionary then returns pointer to its value, else returns NULL. Read more
source§

fn get(&self, key: &str) -> Result<DictValue>

If the @p key in the dictionary then returns its value, else an error will be generated.
source§

impl DictTraitConst for BoxedRefMut<'_, LayerParams>

source§

fn as_raw_Dict(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn has(&self, key: &str) -> Result<bool>

Checks a presence of the @p key in the dictionary.
source§

unsafe fn ptr(&self, key: &str) -> Result<DictValue>

If the @p key in the dictionary then returns pointer to its value, else returns NULL. Read more
source§

fn get(&self, key: &str) -> Result<DictValue>

If the @p key in the dictionary then returns its value, else an error will be generated.
source§

impl DictValueTrait for BoxedRefMut<'_, DictValue>

source§

fn as_raw_mut_DictValue( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, r: &impl DictValueTraitConst) -> Result<()>

source§

impl DictValueTraitConst for BoxedRefMut<'_, DictValue>

source§

fn as_raw_DictValue(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_str(&self, idx: i32) -> Result<String>

C++ default parameters Read more
source§

fn get_str_def(&self) -> Result<String>

source§

fn get_f64(&self, idx: i32) -> Result<f64>

C++ default parameters Read more
source§

fn get_f64_def(&self) -> Result<f64>

source§

fn get_i32(&self, idx: i32) -> Result<i32>

C++ default parameters Read more
source§

fn get_i32_def(&self) -> Result<i32>

source§

fn get_i64(&self, idx: i32) -> Result<i64>

C++ default parameters Read more
source§

fn get_i64_def(&self) -> Result<i64>

source§

fn size(&self) -> Result<i32>

source§

fn is_int(&self) -> Result<bool>

source§

fn is_string(&self) -> Result<bool>

source§

fn is_real(&self) -> Result<bool>

source§

fn get_int_value(&self, idx: i32) -> Result<i32>

C++ default parameters Read more
source§

fn get_int_value_def(&self) -> Result<i32>

source§

fn get_real_value(&self, idx: i32) -> Result<f64>

C++ default parameters Read more
source§

fn get_real_value_def(&self) -> Result<f64>

source§

fn get_string_value(&self, idx: i32) -> Result<String>

C++ default parameters Read more
source§

fn get_string_value_def(&self) -> Result<String>

source§

impl DownhillSolverTrait for BoxedRefMut<'_, DownhillSolver>

source§

fn as_raw_mut_DownhillSolver( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_init_step(&mut self, step: &impl ToInputArray) -> Result<()>

Sets the initial step that will be used in downhill simplex algorithm. Read more
source§

impl DownhillSolverTraitConst for BoxedRefMut<'_, DownhillSolver>

source§

fn as_raw_DownhillSolver( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_init_step(&self, step: &mut impl ToOutputArray) -> Result<()>

Returns the initial step that will be used in downhill simplex algorithm. Read more
source§

impl ELULayerTrait for BoxedRefMut<'_, ELULayer>

source§

fn as_raw_mut_ELULayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ELULayerTraitConst for BoxedRefMut<'_, ELULayer>

source§

fn as_raw_ELULayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl EltwiseLayerInt8Trait for BoxedRefMut<'_, EltwiseLayerInt8>

source§

fn as_raw_mut_EltwiseLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl EltwiseLayerInt8TraitConst for BoxedRefMut<'_, EltwiseLayerInt8>

source§

fn as_raw_EltwiseLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl EltwiseLayerTrait for BoxedRefMut<'_, EltwiseLayer>

source§

fn as_raw_mut_EltwiseLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl EltwiseLayerTraitConst for BoxedRefMut<'_, EltwiseLayer>

source§

fn as_raw_EltwiseLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl EventTrait for BoxedRefMut<'_, Event>

source§

fn as_raw_mut_Event( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn record(&mut self, stream: &mut impl StreamTrait) -> Result<()>

records an event Read more
source§

fn record_def(&mut self) -> Result<()>

records an event Read more
source§

fn wait_for_completion(&mut self) -> Result<()>

waits for an event to complete
source§

impl EventTraitConst for BoxedRefMut<'_, Event>

source§

fn as_raw_Event(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn query_if_complete(&self) -> Result<bool>

queries an event’s status
source§

impl ExceptionTrait for BoxedRefMut<'_, Exception>

source§

fn as_raw_mut_Exception( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_msg(&mut self, val: &str)

the formatted error message
source§

fn set_code(&mut self, val: i32)

error code see also: CVStatus
source§

fn set_err(&mut self, val: &str)

error description
source§

fn set_func(&mut self, val: &str)

function name. Available only when the compiler supports getting it
source§

fn set_file(&mut self, val: &str)

source file name where the error has occurred
source§

fn set_line(&mut self, val: i32)

line number in the source file where the error has occurred
source§

fn format_message(&mut self) -> Result<()>

source§

impl ExceptionTraitConst for BoxedRefMut<'_, Exception>

source§

fn as_raw_Exception(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn msg(&self) -> String

the formatted error message
source§

fn code(&self) -> i32

error code see also: CVStatus
source§

fn err(&self) -> String

error description
source§

fn func(&self) -> String

function name. Available only when the compiler supports getting it
source§

fn file(&self) -> String

source file name where the error has occurred
source§

fn line(&self) -> i32

line number in the source file where the error has occurred
source§

fn what(&self) -> Result<String>

! \return the error description and the context as a text string.
source§

impl ExpLayerTrait for BoxedRefMut<'_, ExpLayer>

source§

fn as_raw_mut_ExpLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_base(&mut self, val: f32)

source§

fn set_scale(&mut self, val: f32)

source§

fn set_shift(&mut self, val: f32)

source§

impl ExpLayerTraitConst for BoxedRefMut<'_, ExpLayer>

source§

fn as_raw_ExpLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn base(&self) -> f32

source§

fn scale(&self) -> f32

source§

fn shift(&self) -> f32

source§

impl FileNodeIteratorTrait for BoxedRefMut<'_, FileNodeIterator>

source§

fn as_raw_mut_FileNodeIterator( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, it: &impl FileNodeIteratorTraitConst) -> Result<()>

source§

fn incr(&mut self) -> Result<FileNodeIterator>

moves iterator to the next node
source§

fn read_raw(&mut self, fmt: &str, vec: &mut [u8]) -> Result<FileNodeIterator>

Reads node elements to the buffer with the specified format. Read more
source§

impl FileNodeIteratorTraitConst for BoxedRefMut<'_, FileNodeIterator>

source§

fn as_raw_FileNodeIterator( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn try_deref(&self) -> Result<FileNode>

returns the currently observed element
source§

fn remaining(&self) -> Result<size_t>

returns the number of remaining (not read yet) elements
source§

fn equal_to(&self, it: &impl FileNodeIteratorTraitConst) -> Result<bool>

source§

impl FileNodeTrait for BoxedRefMut<'_, FileNode>

source§

fn as_raw_mut_FileNode( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_block_idx(&mut self, val: size_t)

source§

fn set_ofs(&mut self, val: size_t)

source§

fn set(&mut self, node: &impl FileNodeTraitConst) -> Result<()>

source§

fn ptr_1(&mut self) -> Result<*mut u8>

source§

fn set_value(&mut self, typ: i32, value: &mut [u8]) -> Result<()>

Internal method used when reading FileStorage. Sets the type (int, real or string) and value of the previously created node. Read more
source§

impl FileNodeTraitConst for BoxedRefMut<'_, FileNode>

source§

fn as_raw_FileNode(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn block_idx(&self) -> size_t

source§

fn ofs(&self) -> size_t

source§

fn get(&self, nodename: &str) -> Result<FileNode>

Returns element of a mapping node or a sequence node. Read more
source§

fn get_node(&self, nodename: &str) -> Result<FileNode>

Returns element of a mapping node or a sequence node. Read more
source§

fn at(&self, i: i32) -> Result<FileNode>

Returns element of a mapping node or a sequence node. Read more
source§

fn keys(&self) -> Result<Vector<String>>

Returns keys of a mapping node. Read more
source§

fn typ(&self) -> Result<i32>

Returns type of the node. Read more
source§

fn empty(&self) -> Result<bool>

returns true if the node is empty
source§

fn is_none(&self) -> Result<bool>

returns true if the node is a “none” object
source§

fn is_seq(&self) -> Result<bool>

returns true if the node is a sequence
source§

fn is_map(&self) -> Result<bool>

returns true if the node is a mapping
source§

fn is_int(&self) -> Result<bool>

returns true if the node is an integer
source§

fn is_real(&self) -> Result<bool>

returns true if the node is a floating-point number
source§

fn is_string(&self) -> Result<bool>

returns true if the node is a text string
source§

fn is_named(&self) -> Result<bool>

returns true if the node has a name
source§

fn name(&self) -> Result<String>

returns the node name or an empty string if the node is nameless
source§

fn size(&self) -> Result<size_t>

returns the number of elements in the node, if it is a sequence or mapping, or 1 otherwise.
source§

fn raw_size(&self) -> Result<size_t>

returns raw size of the FileNode in bytes
source§

fn to_i32(&self) -> Result<i32>

returns the node content as an integer. If the node stores floating-point number, it is rounded.
source§

fn to_f32(&self) -> Result<f32>

returns the node content as float
source§

fn to_f64(&self) -> Result<f64>

returns the node content as double
source§

fn to_string(&self) -> Result<String>

returns the node content as text string
source§

fn ptr(&self) -> Result<*const u8>

source§

fn begin(&self) -> Result<FileNodeIterator>

returns iterator pointing to the first node element
source§

fn end(&self) -> Result<FileNodeIterator>

returns iterator pointing to the element following the last node element
source§

fn read_raw(&self, fmt: &str, vec: &mut [u8]) -> Result<()>

Reads node elements to the buffer with the specified format. Read more
source§

fn real(&self) -> Result<f64>

Simplified reading API to use with bindings.
source§

fn string(&self) -> Result<String>

Simplified reading API to use with bindings.
source§

fn mat(&self) -> Result<Mat>

Simplified reading API to use with bindings.
source§

impl FileStorageTrait for BoxedRefMut<'_, FileStorage>

source§

fn as_raw_mut_FileStorage( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_state(&mut self, val: i32)

source§

fn set_elname(&mut self, val: &str)

source§

fn open(&mut self, filename: &str, flags: i32, encoding: &str) -> Result<bool>

Opens a file. Read more
source§

fn open_def(&mut self, filename: &str, flags: i32) -> Result<bool>

Opens a file. Read more
source§

fn release(&mut self) -> Result<()>

Closes the file and releases all the memory buffers. Read more
source§

fn release_and_get_string(&mut self) -> Result<String>

Closes the file and releases all the memory buffers. Read more
source§

fn write_i32(&mut self, name: &str, val: i32) -> Result<()>

Simplified writing API to use with bindings. Read more
source§

fn write_f64(&mut self, name: &str, val: f64) -> Result<()>

Simplified writing API to use with bindings. Read more
source§

fn write_str(&mut self, name: &str, val: &str) -> Result<()>

Simplified writing API to use with bindings. Read more
source§

fn write_mat(&mut self, name: &str, val: &impl MatTraitConst) -> Result<()>

Simplified writing API to use with bindings. Read more
source§

fn write_str_vec(&mut self, name: &str, val: &Vector<String>) -> Result<()>

Simplified writing API to use with bindings. Read more
source§

fn write_raw(&mut self, fmt: &str, vec: &mut [u8]) -> Result<()>

Writes multiple numbers. Read more
source§

fn write_comment(&mut self, comment: &str, append: bool) -> Result<()>

Writes a comment. Read more
source§

fn write_comment_def(&mut self, comment: &str) -> Result<()>

Writes a comment. Read more
source§

fn start_write_struct( &mut self, name: &str, flags: i32, type_name: &str ) -> Result<()>

Starts to write a nested structure (sequence or a mapping). Read more
source§

fn start_write_struct_def(&mut self, name: &str, flags: i32) -> Result<()>

Starts to write a nested structure (sequence or a mapping). Read more
source§

fn end_write_struct(&mut self) -> Result<()>

Finishes writing nested structure (should pair startWriteStruct())
source§

impl FileStorageTraitConst for BoxedRefMut<'_, FileStorage>

source§

fn as_raw_FileStorage(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn state(&self) -> i32

source§

fn elname(&self) -> String

source§

fn is_opened(&self) -> Result<bool>

Checks whether the file is opened. Read more
source§

fn get_first_top_level_node(&self) -> Result<FileNode>

Returns the first element of the top-level mapping. Read more
source§

fn root(&self, streamidx: i32) -> Result<FileNode>

Returns the top-level mapping Read more
source§

fn root_def(&self) -> Result<FileNode>

Returns the top-level mapping Read more
source§

fn get(&self, nodename: &str) -> Result<FileNode>

Returns the specified element of the top-level mapping. Read more
source§

fn get_node(&self, nodename: &str) -> Result<FileNode>

Returns the specified element of the top-level mapping. Read more
source§

fn get_format(&self) -> Result<i32>

Returns the current format. Read more
source§

impl FlattenLayerTrait for BoxedRefMut<'_, FlattenLayer>

source§

fn as_raw_mut_FlattenLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl FlattenLayerTraitConst for BoxedRefMut<'_, FlattenLayer>

source§

fn as_raw_FlattenLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl FlowWarpLayerTrait for BoxedRefMut<'_, FlowWarpLayer>

source§

fn as_raw_mut_FlowWarpLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl FlowWarpLayerTraitConst for BoxedRefMut<'_, FlowWarpLayer>

source§

fn as_raw_FlowWarpLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl FormattedTrait for BoxedRefMut<'_, Formatted>

source§

fn as_raw_mut_Formatted( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn next(&mut self) -> Result<String>

source§

fn reset(&mut self) -> Result<()>

source§

impl FormattedTraitConst for BoxedRefMut<'_, Formatted>

source§

fn as_raw_Formatted(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl FormatterTrait for BoxedRefMut<'_, Formatter>

source§

fn as_raw_mut_Formatter( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set16f_precision(&mut self, p: i32) -> Result<()>

C++ default parameters Read more
source§

fn set16f_precision_def(&mut self) -> Result<()>

source§

fn set32f_precision(&mut self, p: i32) -> Result<()>

C++ default parameters Read more
source§

fn set32f_precision_def(&mut self) -> Result<()>

source§

fn set64f_precision(&mut self, p: i32) -> Result<()>

C++ default parameters Read more
source§

fn set64f_precision_def(&mut self) -> Result<()>

source§

fn set_multiline(&mut self, ml: bool) -> Result<()>

C++ default parameters Read more
source§

fn set_multiline_def(&mut self) -> Result<()>

source§

impl FormatterTraitConst for BoxedRefMut<'_, Formatter>

source§

fn as_raw_Formatter(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn format(&self, mtx: &impl MatTraitConst) -> Result<Ptr<Formatted>>

source§

impl<T: Boxed> From<T> for BoxedRefMut<'_, T>

source§

fn from(value: T) -> Self

Converts to this type from the input type.
source§

impl GRULayerTrait for BoxedRefMut<'_, GRULayer>

source§

fn as_raw_mut_GRULayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl GRULayerTraitConst for BoxedRefMut<'_, GRULayer>

source§

fn as_raw_GRULayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl GeneralizedHoughBallardTrait for BoxedRefMut<'_, GeneralizedHoughBallard>

source§

fn as_raw_mut_GeneralizedHoughBallard( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_levels(&mut self, levels: i32) -> Result<()>

R-Table levels.
source§

fn set_votes_threshold(&mut self, votes_threshold: i32) -> Result<()>

The accumulator threshold for the template centers at the detection stage. The smaller it is, the more false positions may be detected.
source§

impl GeneralizedHoughBallardTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>

source§

fn as_raw_GeneralizedHoughBallard( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_levels(&self) -> Result<i32>

source§

fn get_votes_threshold(&self) -> Result<i32>

source§

impl GeneralizedHoughGuilTrait for BoxedRefMut<'_, GeneralizedHoughGuil>

source§

fn as_raw_mut_GeneralizedHoughGuil( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_xi(&mut self, xi: f64) -> Result<()>

Angle difference in degrees between two points in feature.
source§

fn set_levels(&mut self, levels: i32) -> Result<()>

Feature table levels.
source§

fn set_angle_epsilon(&mut self, angle_epsilon: f64) -> Result<()>

Maximal difference between angles that treated as equal.
source§

fn set_min_angle(&mut self, min_angle: f64) -> Result<()>

Minimal rotation angle to detect in degrees.
source§

fn set_max_angle(&mut self, max_angle: f64) -> Result<()>

Maximal rotation angle to detect in degrees.
source§

fn set_angle_step(&mut self, angle_step: f64) -> Result<()>

Angle step in degrees.
source§

fn set_angle_thresh(&mut self, angle_thresh: i32) -> Result<()>

Angle votes threshold.
source§

fn set_min_scale(&mut self, min_scale: f64) -> Result<()>

Minimal scale to detect.
source§

fn set_max_scale(&mut self, max_scale: f64) -> Result<()>

Maximal scale to detect.
source§

fn set_scale_step(&mut self, scale_step: f64) -> Result<()>

Scale step.
source§

fn set_scale_thresh(&mut self, scale_thresh: i32) -> Result<()>

Scale votes threshold.
source§

fn set_pos_thresh(&mut self, pos_thresh: i32) -> Result<()>

Position votes threshold.
source§

impl GeneralizedHoughGuilTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>

source§

impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHough>

source§

fn as_raw_mut_GeneralizedHough( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_template( &mut self, templ: &impl ToInputArray, templ_center: Point ) -> Result<()>

set template to search Read more
source§

fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>

set template to search Read more
source§

fn set_template_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, templ_center: Point ) -> Result<()>

C++ default parameters Read more
source§

fn set_template_def_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray ) -> Result<()>

source§

fn detect( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray ) -> Result<()>

find template on image Read more
source§

fn detect_def( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray ) -> Result<()>

find template on image Read more
source§

fn detect_with_edges( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray ) -> Result<()>

C++ default parameters Read more
source§

fn detect_with_edges_def( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray ) -> Result<()>

source§

fn set_canny_low_thresh(&mut self, canny_low_thresh: i32) -> Result<()>

Canny low threshold.
source§

fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>

Canny high threshold.
source§

fn set_min_dist(&mut self, min_dist: f64) -> Result<()>

Minimum distance between the centers of the detected objects.
source§

fn set_dp(&mut self, dp: f64) -> Result<()>

Inverse ratio of the accumulator resolution to the image resolution.
source§

fn set_max_buffer_size(&mut self, max_buffer_size: i32) -> Result<()>

Maximal size of inner buffers.
source§

impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHoughBallard>

source§

fn as_raw_mut_GeneralizedHough( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_template( &mut self, templ: &impl ToInputArray, templ_center: Point ) -> Result<()>

set template to search Read more
source§

fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>

set template to search Read more
source§

fn set_template_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, templ_center: Point ) -> Result<()>

C++ default parameters Read more
source§

fn set_template_def_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray ) -> Result<()>

source§

fn detect( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray ) -> Result<()>

find template on image Read more
source§

fn detect_def( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray ) -> Result<()>

find template on image Read more
source§

fn detect_with_edges( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray ) -> Result<()>

C++ default parameters Read more
source§

fn detect_with_edges_def( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray ) -> Result<()>

source§

fn set_canny_low_thresh(&mut self, canny_low_thresh: i32) -> Result<()>

Canny low threshold.
source§

fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>

Canny high threshold.
source§

fn set_min_dist(&mut self, min_dist: f64) -> Result<()>

Minimum distance between the centers of the detected objects.
source§

fn set_dp(&mut self, dp: f64) -> Result<()>

Inverse ratio of the accumulator resolution to the image resolution.
source§

fn set_max_buffer_size(&mut self, max_buffer_size: i32) -> Result<()>

Maximal size of inner buffers.
source§

impl GeneralizedHoughTrait for BoxedRefMut<'_, GeneralizedHoughGuil>

source§

fn as_raw_mut_GeneralizedHough( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_template( &mut self, templ: &impl ToInputArray, templ_center: Point ) -> Result<()>

set template to search Read more
source§

fn set_template_def(&mut self, templ: &impl ToInputArray) -> Result<()>

set template to search Read more
source§

fn set_template_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, templ_center: Point ) -> Result<()>

C++ default parameters Read more
source§

fn set_template_def_1( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray ) -> Result<()>

source§

fn detect( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray ) -> Result<()>

find template on image Read more
source§

fn detect_def( &mut self, image: &impl ToInputArray, positions: &mut impl ToOutputArray ) -> Result<()>

find template on image Read more
source§

fn detect_with_edges( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray, votes: &mut impl ToOutputArray ) -> Result<()>

C++ default parameters Read more
source§

fn detect_with_edges_def( &mut self, edges: &impl ToInputArray, dx: &impl ToInputArray, dy: &impl ToInputArray, positions: &mut impl ToOutputArray ) -> Result<()>

source§

fn set_canny_low_thresh(&mut self, canny_low_thresh: i32) -> Result<()>

Canny low threshold.
source§

fn set_canny_high_thresh(&mut self, canny_high_thresh: i32) -> Result<()>

Canny high threshold.
source§

fn set_min_dist(&mut self, min_dist: f64) -> Result<()>

Minimum distance between the centers of the detected objects.
source§

fn set_dp(&mut self, dp: f64) -> Result<()>

Inverse ratio of the accumulator resolution to the image resolution.
source§

fn set_max_buffer_size(&mut self, max_buffer_size: i32) -> Result<()>

Maximal size of inner buffers.
source§

impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHough>

source§

fn as_raw_GeneralizedHough( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_canny_low_thresh(&self) -> Result<i32>

source§

fn get_canny_high_thresh(&self) -> Result<i32>

source§

fn get_min_dist(&self) -> Result<f64>

source§

fn get_dp(&self) -> Result<f64>

source§

fn get_max_buffer_size(&self) -> Result<i32>

source§

impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHoughBallard>

source§

fn as_raw_GeneralizedHough( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_canny_low_thresh(&self) -> Result<i32>

source§

fn get_canny_high_thresh(&self) -> Result<i32>

source§

fn get_min_dist(&self) -> Result<f64>

source§

fn get_dp(&self) -> Result<f64>

source§

fn get_max_buffer_size(&self) -> Result<i32>

source§

impl GeneralizedHoughTraitConst for BoxedRefMut<'_, GeneralizedHoughGuil>

source§

fn as_raw_GeneralizedHough( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_canny_low_thresh(&self) -> Result<i32>

source§

fn get_canny_high_thresh(&self) -> Result<i32>

source§

fn get_min_dist(&self) -> Result<f64>

source§

fn get_dp(&self) -> Result<f64>

source§

fn get_max_buffer_size(&self) -> Result<i32>

source§

impl GpuDataTrait for BoxedRefMut<'_, GpuData>

source§

fn as_raw_mut_GpuData( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn data_mut(&mut self) -> *mut u8

source§

unsafe fn set_data(&mut self, val: *const u8)

source§

fn set_size(&mut self, val: size_t)

source§

impl GpuDataTraitConst for BoxedRefMut<'_, GpuData>

source§

fn as_raw_GpuData(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn data(&self) -> *const u8

source§

fn size(&self) -> size_t

source§

impl GpuMatNDTrait for BoxedRefMut<'_, GpuMatND>

source§

fn as_raw_mut_GpuMatND( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_flags(&mut self, val: i32)

! includes several bit-fields: Read more
source§

fn set_dims(&mut self, val: i32)

matrix dimensionality
source§

fn set_size(&mut self, val: GpuMatND_SizeArray)

shape of this array
source§

fn set_step(&mut self, val: GpuMatND_StepArray)

! step values Their semantics is identical to the semantics of step for Mat.
source§

fn create(&mut self, size: GpuMatND_SizeArray, typ: i32) -> Result<()>

Allocates GPU memory. Suppose there is some GPU memory already allocated. In that case, this method may choose to reuse that GPU memory under the specific condition: it must be of the same size and type, not externally allocated, the GPU memory is continuous(i.e., isContinuous() is true), and is not a sub-matrix of another GpuMatND (i.e., isSubmatrix() is false). In other words, this method guarantees that the GPU memory allocated by this method is always continuous and is not a sub-region of another GpuMatND.
source§

fn release(&mut self) -> Result<()>

source§

fn swap(&mut self, m: &mut impl GpuMatNDTrait)

source§

fn ranges_mut( &mut self, ranges: &Vector<Range> ) -> Result<BoxedRefMut<'_, GpuMatND>>

Extracts a sub-matrix. The operator makes a new header for the specified sub-array of *this. The operator is an O(1) operation, that is, no matrix data is copied. Read more
source§

fn create_gpu_mat_header_mut( &mut self, idx: GpuMatND_IndexArray, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRefMut<'_, GpuMat>>

Creates a GpuMat header for a 2D plane part of an n-dim matrix. Read more
source§

fn create_gpu_mat_header_mut_1(&mut self) -> Result<BoxedRefMut<'_, GpuMat>>

@overload Creates a GpuMat header if this GpuMatND is effectively 2D. Read more
source§

fn rowscols_mut( &mut self, idx: GpuMatND_IndexArray, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRefMut<'_, GpuMat>>

Extracts a 2D plane part of an n-dim matrix. It differs from createGpuMatHeader(IndexArray, Range, Range) in that it clones a part of this GpuMatND to the returned GpuMat. Read more
source§

fn set(&mut self, unnamed: &impl GpuMatNDTraitConst)

source§

fn set_1(&mut self, unnamed: GpuMatND)

source§

fn upload(&mut self, src: &impl ToInputArray) -> Result<()>

source§

fn upload_1( &mut self, src: &impl ToInputArray, stream: &mut impl StreamTrait ) -> Result<()>

source§

impl GpuMatNDTraitConst for BoxedRefMut<'_, GpuMatND>

source§

fn as_raw_GpuMatND(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn flags(&self) -> i32

! includes several bit-fields: Read more
source§

fn dims(&self) -> i32

matrix dimensionality
source§

fn size(&self) -> Vector<i32>

shape of this array
source§

fn step(&self) -> Vector<size_t>

! step values Their semantics is identical to the semantics of step for Mat.
source§

fn try_clone(&self) -> Result<GpuMatND>

Creates a full copy of the array and the underlying data. The method creates a full copy of the array. It mimics the behavior of Mat::clone(), i.e. the original step is not taken into account. So, the array copy is a continuous array occupying total()*elemSize() bytes.
source§

fn clone(&self, stream: &mut impl StreamTrait) -> Result<GpuMatND>

Creates a full copy of the array and the underlying data. The method creates a full copy of the array. It mimics the behavior of Mat::clone(), i.e. the original step is not taken into account. So, the array copy is a continuous array occupying total()*elemSize() bytes. Read more
source§

fn ranges(&self, ranges: &Vector<Range>) -> Result<BoxedRef<'_, GpuMatND>>

Extracts a sub-matrix. The operator makes a new header for the specified sub-array of *this. The operator is an O(1) operation, that is, no matrix data is copied. Read more
source§

fn create_gpu_mat_header( &self, idx: GpuMatND_IndexArray, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRef<'_, GpuMat>>

Creates a GpuMat header for a 2D plane part of an n-dim matrix. Read more
source§

fn create_gpu_mat_header_1(&self) -> Result<BoxedRef<'_, GpuMat>>

Creates a GpuMat header for a 2D plane part of an n-dim matrix. Read more
source§

fn rowscols( &self, idx: GpuMatND_IndexArray, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRef<'_, GpuMat>>

Extracts a 2D plane part of an n-dim matrix. It differs from createGpuMatHeader(IndexArray, Range, Range) in that it clones a part of this GpuMatND to the returned GpuMat. Read more
source§

fn to_gpu_mat(&self) -> Result<GpuMat>

Extracts a 2D plane part of an n-dim matrix if this GpuMatND is effectively 2D. It differs from createGpuMatHeader() in that it clones a part of this GpuMatND. Read more
source§

fn download(&self, dst: &mut impl ToOutputArray) -> Result<()>

source§

fn download_1( &self, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait ) -> Result<()>

source§

fn is_continuous(&self) -> Result<bool>

returns true iff the GpuMatND data is continuous (i.e. when there are no gaps between successive rows)
source§

fn is_submatrix(&self) -> Result<bool>

returns true if the matrix is a sub-matrix of another matrix
source§

fn elem_size(&self) -> Result<size_t>

returns element size in bytes
source§

fn elem_size1(&self) -> Result<size_t>

returns the size of element channel in bytes
source§

fn empty(&self) -> Result<bool>

returns true if data is null
source§

fn external(&self) -> Result<bool>

returns true if not empty and points to external(user-allocated) gpu memory
source§

fn get_device_ptr(&self) -> Result<*mut u8>

returns pointer to the first byte of the GPU memory
source§

fn total(&self) -> Result<size_t>

returns the total number of array elements
source§

fn total_mem_size(&self) -> Result<size_t>

returns the size of underlying memory in bytes
source§

fn typ(&self) -> Result<i32>

returns element type
source§

impl GpuMatTrait for BoxedRefMut<'_, GpuMat>

source§

fn as_raw_mut_GpuMat( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_flags(&mut self, val: i32)

! includes several bit-fields: Read more
source§

fn set_rows(&mut self, val: i32)

the number of rows and columns
source§

fn set_cols(&mut self, val: i32)

the number of rows and columns
source§

fn set_step(&mut self, val: size_t)

a distance between successive rows in bytes; includes the gap if any
source§

fn data_mut(&mut self) -> *mut u8

pointer to the data
source§

unsafe fn set_data(&mut self, val: *const u8)

pointer to the data
source§

fn refcount_mut(&mut self) -> *mut i32

pointer to the reference counter; when GpuMat points to user-allocated data, the pointer is NULL
source§

unsafe fn set_refcount(&mut self, val: *const i32)

pointer to the reference counter; when GpuMat points to user-allocated data, the pointer is NULL
source§

fn datastart_mut(&mut self) -> *mut u8

helper fields used in locateROI and adjustROI
source§

unsafe fn set_datastart(&mut self, val: *const u8)

helper fields used in locateROI and adjustROI
source§

fn allocator(&mut self) -> AbstractRefMut<'_, GpuMat_Allocator>

allocator
source§

unsafe fn set_allocator(&mut self, val: &impl GpuMat_AllocatorTraitConst)

allocator
source§

fn set(&mut self, m: &impl GpuMatTraitConst) -> Result<()>

assignment operators
source§

fn create(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>

allocates new GpuMat data unless the GpuMat already has specified size and type
source§

fn create_1(&mut self, size: Size, typ: i32) -> Result<()>

source§

fn release(&mut self) -> Result<()>

decreases reference counter, deallocate the data when reference counter reaches 0
source§

fn swap(&mut self, mat: &mut impl GpuMatTrait) -> Result<()>

swaps with other smart pointer
source§

fn upload(&mut self, arr: &impl ToInputArray) -> Result<()>

Performs data upload to GpuMat (Blocking call) Read more
source§

fn upload_async( &mut self, arr: &impl ToInputArray, stream: &mut impl StreamTrait ) -> Result<()>

Performs data upload to GpuMat (Non-Blocking call) Read more
source§

fn set_to(&mut self, s: Scalar) -> Result<GpuMat>

sets some of the GpuMat elements to s (Blocking call)
source§

fn set_to_1( &mut self, s: Scalar, stream: &mut impl StreamTrait ) -> Result<GpuMat>

sets some of the GpuMat elements to s (Non-Blocking call)
source§

fn set_to_2(&mut self, s: Scalar, mask: &impl ToInputArray) -> Result<GpuMat>

sets some of the GpuMat elements to s, according to the mask (Blocking call)
source§

fn set_to_3( &mut self, s: Scalar, mask: &impl ToInputArray, stream: &mut impl StreamTrait ) -> Result<GpuMat>

sets some of the GpuMat elements to s, according to the mask (Non-Blocking call)
source§

fn ptr_mut(&mut self, y: i32) -> Result<*mut u8>

returns pointer to y-th row Read more
source§

fn ptr_mut_def(&mut self) -> Result<*mut u8>

returns pointer to y-th row Read more
source§

fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, GpuMat>>

returns a new GpuMat header for the specified row
source§

fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, GpuMat>>

returns a new GpuMat header for the specified column
source§

fn row_bounds_mut( &mut self, startrow: i32, endrow: i32 ) -> Result<BoxedRefMut<'_, GpuMat>>

… for the specified row span
source§

fn row_range_mut( &mut self, r: impl RangeTrait ) -> Result<BoxedRefMut<'_, GpuMat>>

source§

fn col_bounds_mut( &mut self, startcol: i32, endcol: i32 ) -> Result<BoxedRefMut<'_, GpuMat>>

… for the specified column span
source§

fn col_range_mut( &mut self, r: impl RangeTrait ) -> Result<BoxedRefMut<'_, GpuMat>>

source§

fn rowscols_mut( &mut self, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRefMut<'_, GpuMat>>

extracts a rectangular sub-GpuMat (this is a generalized form of row, rowRange etc.)
source§

fn roi_mut(&mut self, roi: Rect) -> Result<BoxedRefMut<'_, GpuMat>>

source§

fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, GpuMat>>

creates alternative GpuMat header for the same data, with different number of channels and/or different number of rows Read more
source§

fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, GpuMat>>

creates alternative GpuMat header for the same data, with different number of channels and/or different number of rows Read more
source§

fn adjust_roi( &mut self, dtop: i32, dbottom: i32, dleft: i32, dright: i32 ) -> Result<GpuMat>

moves/resizes the current GpuMat ROI inside the parent GpuMat
source§

fn update_continuity_flag(&mut self) -> Result<()>

internal use method: updates the continuity flag
source§

impl GpuMatTraitConst for BoxedRefMut<'_, GpuMat>

source§

fn as_raw_GpuMat(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn flags(&self) -> i32

! includes several bit-fields: Read more
source§

fn rows(&self) -> i32

the number of rows and columns
source§

fn cols(&self) -> i32

the number of rows and columns
source§

fn step(&self) -> size_t

a distance between successive rows in bytes; includes the gap if any
source§

fn data(&self) -> *const u8

pointer to the data
source§

fn refcount(&self) -> *const i32

pointer to the reference counter; when GpuMat points to user-allocated data, the pointer is NULL
source§

fn datastart(&self) -> *const u8

helper fields used in locateROI and adjustROI
source§

fn dataend(&self) -> *const u8

source§

fn download(&self, dst: &mut impl ToOutputArray) -> Result<()>

Performs data download from GpuMat (Blocking call) Read more
source§

fn download_async( &self, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait ) -> Result<()>

Performs data download from GpuMat (Non-Blocking call) Read more
source§

fn try_clone(&self) -> Result<GpuMat>

returns deep copy of the GpuMat, i.e. the data is copied
source§

fn copy_to(&self, dst: &mut impl ToOutputArray) -> Result<()>

copies the GpuMat content to device memory (Blocking call)
source§

fn copy_to_stream( &self, dst: &mut impl ToOutputArray, stream: &mut impl StreamTrait ) -> Result<()>

copies the GpuMat content to device memory (Non-Blocking call)
source§

fn copy_to_mask( &self, dst: &mut impl ToOutputArray, mask: &impl ToInputArray ) -> Result<()>

copies those GpuMat elements to “m” that are marked with non-zero mask elements (Blocking call)
source§

fn copy_to_mask_stream( &self, dst: &mut impl ToOutputArray, mask: &impl ToInputArray, stream: &mut impl StreamTrait ) -> Result<()>

copies those GpuMat elements to “m” that are marked with non-zero mask elements (Non-Blocking call)
source§

fn convert_to(&self, dst: &mut impl ToOutputArray, rtype: i32) -> Result<()>

converts GpuMat to another datatype (Blocking call)
source§

fn convert_to_1( &self, dst: &mut impl ToOutputArray, rtype: i32, stream: &mut impl StreamTrait ) -> Result<()>

converts GpuMat to another datatype (Non-Blocking call)
source§

fn convert_to_2( &self, dst: &mut impl ToOutputArray, rtype: i32, alpha: f64, beta: f64 ) -> Result<()>

converts GpuMat to another datatype with scaling (Blocking call) Read more
source§

fn convert_to_def( &self, dst: &mut impl ToOutputArray, rtype: i32, alpha: f64 ) -> Result<()>

converts GpuMat to another datatype with scaling (Blocking call) Read more
source§

fn convert_to_3( &self, dst: &mut impl ToOutputArray, rtype: i32, alpha: f64, stream: &mut impl StreamTrait ) -> Result<()>

converts GpuMat to another datatype with scaling (Non-Blocking call)
source§

fn convert_to_4( &self, dst: &mut impl ToOutputArray, rtype: i32, alpha: f64, beta: f64, stream: &mut impl StreamTrait ) -> Result<()>

converts GpuMat to another datatype with scaling (Non-Blocking call)
source§

fn assign_to(&self, m: &mut impl GpuMatTrait, typ: i32) -> Result<()>

C++ default parameters Read more
source§

fn assign_to_def(&self, m: &mut impl GpuMatTrait) -> Result<()>

source§

fn ptr(&self, y: i32) -> Result<*const u8>

C++ default parameters Read more
source§

fn ptr_def(&self) -> Result<*const u8>

source§

fn row(&self, y: i32) -> Result<BoxedRef<'_, GpuMat>>

returns a new GpuMat header for the specified row
source§

fn col(&self, x: i32) -> Result<BoxedRef<'_, GpuMat>>

returns a new GpuMat header for the specified column
source§

fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, GpuMat>>

… for the specified row span
source§

fn row_range(&self, r: impl RangeTrait) -> Result<BoxedRef<'_, GpuMat>>

source§

fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, GpuMat>>

… for the specified column span
source§

fn col_range(&self, r: impl RangeTrait) -> Result<BoxedRef<'_, GpuMat>>

source§

fn rowscols( &self, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRef<'_, GpuMat>>

extracts a rectangular sub-GpuMat (this is a generalized form of row, rowRange etc.)
source§

fn roi(&self, roi: Rect) -> Result<BoxedRef<'_, GpuMat>>

source§

fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, GpuMat>>

creates alternative GpuMat header for the same data, with different number of channels and/or different number of rows Read more
source§

fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, GpuMat>>

creates alternative GpuMat header for the same data, with different number of channels and/or different number of rows Read more
source§

fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>

locates GpuMat header within a parent GpuMat
source§

fn is_continuous(&self) -> Result<bool>

returns true iff the GpuMat data is continuous (i.e. when there are no gaps between successive rows)
source§

fn elem_size(&self) -> Result<size_t>

returns element size in bytes
source§

fn elem_size1(&self) -> Result<size_t>

returns the size of element channel in bytes
source§

fn typ(&self) -> Result<i32>

returns element type
source§

fn depth(&self) -> Result<i32>

returns element type
source§

fn channels(&self) -> Result<i32>

returns number of channels
source§

fn step1(&self) -> Result<size_t>

returns step/elemSize1()
source§

fn size(&self) -> Result<Size>

returns GpuMat size : width == number of columns, height == number of rows
source§

fn empty(&self) -> Result<bool>

returns true if GpuMat data is NULL
source§

fn cuda_ptr(&self) -> Result<*mut c_void>

source§

impl GpuMat_AllocatorTrait for BoxedRefMut<'_, GpuMat_Allocator>

source§

fn as_raw_mut_GpuMat_Allocator( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn allocate( &mut self, mat: &mut impl GpuMatTrait, rows: i32, cols: i32, elem_size: size_t ) -> Result<bool>

source§

fn free(&mut self, mat: &mut impl GpuMatTrait) -> Result<()>

source§

impl GpuMat_AllocatorTraitConst for BoxedRefMut<'_, GpuMat_Allocator>

source§

fn as_raw_GpuMat_Allocator( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl HammingTrait for BoxedRefMut<'_, Hamming>

source§

fn as_raw_mut_Hamming( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl HammingTraitConst for BoxedRefMut<'_, Hamming>

source§

fn as_raw_Hamming(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn apply(&self, a: &[u8], b: &[u8]) -> Result<Hamming_result_type>

this will count the bits in a ^ b
source§

impl HostMemTrait for BoxedRefMut<'_, HostMem>

source§

fn as_raw_mut_HostMem( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_flags(&mut self, val: i32)

source§

fn set_rows(&mut self, val: i32)

source§

fn set_cols(&mut self, val: i32)

source§

fn set_step(&mut self, val: size_t)

source§

fn data_mut(&mut self) -> *mut u8

source§

unsafe fn set_data(&mut self, val: *const u8)

source§

fn refcount_mut(&mut self) -> *mut i32

source§

unsafe fn set_refcount(&mut self, val: *const i32)

source§

fn datastart_mut(&mut self) -> *mut u8

source§

unsafe fn set_datastart(&mut self, val: *const u8)

source§

fn set_alloc_type(&mut self, val: HostMem_AllocType)

source§

fn set(&mut self, m: &impl HostMemTraitConst) -> Result<()>

source§

fn swap(&mut self, b: &mut impl HostMemTrait) -> Result<()>

swaps with other smart pointer
source§

fn create(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>

allocates new matrix data unless the matrix already has specified size and type.
source§

fn create_1(&mut self, size: Size, typ: i32) -> Result<()>

source§

fn release(&mut self) -> Result<()>

decrements reference counter and released memory if needed.
source§

impl HostMemTraitConst for BoxedRefMut<'_, HostMem>

source§

fn as_raw_HostMem(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn flags(&self) -> i32

source§

fn rows(&self) -> i32

source§

fn cols(&self) -> i32

source§

fn step(&self) -> size_t

source§

fn data(&self) -> *const u8

source§

fn refcount(&self) -> *const i32

source§

fn datastart(&self) -> *const u8

source§

fn dataend(&self) -> *const u8

source§

fn alloc_type(&self) -> HostMem_AllocType

source§

fn try_clone(&self) -> Result<HostMem>

returns deep copy of the matrix, i.e. the data is copied
source§

fn reshape(&self, cn: i32, rows: i32) -> Result<HostMem>

creates alternative HostMem header for the same data, with different number of channels and/or different number of rows Read more
source§

fn reshape_def(&self, cn: i32) -> Result<HostMem>

creates alternative HostMem header for the same data, with different number of channels and/or different number of rows Read more
source§

fn create_mat_header(&self) -> Result<Mat>

returns matrix header with disabled reference counting for HostMem data.
source§

fn create_gpu_mat_header(&self) -> Result<GpuMat>

Maps CPU memory to GPU address space and creates the cuda::GpuMat header without reference counting for it. Read more
source§

fn is_continuous(&self) -> Result<bool>

source§

fn elem_size(&self) -> Result<size_t>

source§

fn elem_size1(&self) -> Result<size_t>

source§

fn typ(&self) -> Result<i32>

source§

fn depth(&self) -> Result<i32>

source§

fn channels(&self) -> Result<i32>

source§

fn step1(&self) -> Result<size_t>

source§

fn size(&self) -> Result<Size>

source§

fn empty(&self) -> Result<bool>

source§

impl Image2DTrait for BoxedRefMut<'_, Image2D>

source§

fn as_raw_mut_Image2D( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, i: &impl Image2DTraitConst) -> Result<()>

source§

fn set_1(&mut self, unnamed: Image2D)

source§

impl Image2DTraitConst for BoxedRefMut<'_, Image2D>

source§

fn as_raw_Image2D(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn ptr(&self) -> Result<*mut c_void>

source§

impl InnerProductLayerInt8Trait for BoxedRefMut<'_, InnerProductLayerInt8>

source§

fn as_raw_mut_InnerProductLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_output_zp(&mut self, val: i32)

source§

impl InnerProductLayerInt8TraitConst for BoxedRefMut<'_, InnerProductLayerInt8>

source§

fn as_raw_InnerProductLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn output_zp(&self) -> i32

source§

impl InnerProductLayerTrait for BoxedRefMut<'_, InnerProductLayer>

source§

fn as_raw_mut_InnerProductLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_axis(&mut self, val: i32)

source§

impl InnerProductLayerTrait for BoxedRefMut<'_, InnerProductLayerInt8>

source§

fn as_raw_mut_InnerProductLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_axis(&mut self, val: i32)

source§

impl InnerProductLayerTraitConst for BoxedRefMut<'_, InnerProductLayer>

source§

fn as_raw_InnerProductLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn axis(&self) -> i32

source§

impl InnerProductLayerTraitConst for BoxedRefMut<'_, InnerProductLayerInt8>

source§

fn as_raw_InnerProductLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn axis(&self) -> i32

source§

impl IntelligentScissorsMBTrait for BoxedRefMut<'_, IntelligentScissorsMB>

source§

fn as_raw_mut_IntelligentScissorsMB( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_weights( &mut self, weight_non_edge: f32, weight_gradient_direction: f32, weight_gradient_magnitude: f32 ) -> Result<IntelligentScissorsMB>

Specify weights of feature functions Read more
source§

fn set_gradient_magnitude_max_limit( &mut self, gradient_magnitude_threshold_max: f32 ) -> Result<IntelligentScissorsMB>

Specify gradient magnitude max value threshold Read more
source§

fn set_gradient_magnitude_max_limit_def( &mut self ) -> Result<IntelligentScissorsMB>

Specify gradient magnitude max value threshold Read more
source§

fn set_edge_feature_zero_crossing_parameters( &mut self, gradient_magnitude_min_value: f32 ) -> Result<IntelligentScissorsMB>

Switch to “Laplacian Zero-Crossing” edge feature extractor and specify its parameters Read more
source§

fn set_edge_feature_zero_crossing_parameters_def( &mut self ) -> Result<IntelligentScissorsMB>

Switch to “Laplacian Zero-Crossing” edge feature extractor and specify its parameters Read more
source§

fn set_edge_feature_canny_parameters( &mut self, threshold1: f64, threshold2: f64, aperture_size: i32, l2gradient: bool ) -> Result<IntelligentScissorsMB>

Switch edge feature extractor to use Canny edge detector Read more
source§

fn set_edge_feature_canny_parameters_def( &mut self, threshold1: f64, threshold2: f64 ) -> Result<IntelligentScissorsMB>

Switch edge feature extractor to use Canny edge detector Read more
source§

fn apply_image( &mut self, image: &impl ToInputArray ) -> Result<IntelligentScissorsMB>

Specify input image and extract image features Read more
source§

fn apply_image_features( &mut self, non_edge: &impl ToInputArray, gradient_direction: &impl ToInputArray, gradient_magnitude: &impl ToInputArray, image: &impl ToInputArray ) -> Result<IntelligentScissorsMB>

Specify custom features of imput image Read more
source§

fn apply_image_features_def( &mut self, non_edge: &impl ToInputArray, gradient_direction: &impl ToInputArray, gradient_magnitude: &impl ToInputArray ) -> Result<IntelligentScissorsMB>

Specify custom features of imput image Read more
source§

fn build_map(&mut self, source_pt: Point) -> Result<()>

Prepares a map of optimal paths for the given source point on the image Read more
source§

impl IntelligentScissorsMBTraitConst for BoxedRefMut<'_, IntelligentScissorsMB>

source§

fn as_raw_IntelligentScissorsMB( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_contour( &self, target_pt: Point, contour: &mut impl ToOutputArray, backward: bool ) -> Result<()>

Extracts optimal contour for the given target point on the image Read more
source§

fn get_contour_def( &self, target_pt: Point, contour: &mut impl ToOutputArray ) -> Result<()>

Extracts optimal contour for the given target point on the image Read more
source§

impl InterpLayerTrait for BoxedRefMut<'_, InterpLayer>

source§

fn as_raw_mut_InterpLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl InterpLayerTraitConst for BoxedRefMut<'_, InterpLayer>

source§

fn as_raw_InterpLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl KernelArgTrait for BoxedRefMut<'_, KernelArg>

source§

fn as_raw_mut_KernelArg( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_flags(&mut self, val: i32)

source§

fn m(&mut self) -> UMat

source§

fn set_m(&mut self, val: &impl UMatTraitConst)

source§

fn set_sz(&mut self, val: size_t)

source§

fn set_wscale(&mut self, val: i32)

source§

fn set_iwscale(&mut self, val: i32)

source§

impl KernelArgTraitConst for BoxedRefMut<'_, KernelArg>

source§

fn as_raw_KernelArg(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn flags(&self) -> i32

source§

fn obj(&self) -> *const c_void

source§

fn sz(&self) -> size_t

source§

fn wscale(&self) -> i32

source§

fn iwscale(&self) -> i32

source§

impl KernelTrait for BoxedRefMut<'_, Kernel>

source§

fn as_raw_mut_Kernel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, k: &impl KernelTraitConst) -> Result<()>

source§

fn set_1(&mut self, k: Kernel)

source§

fn create(&mut self, kname: &str, prog: &impl ProgramTraitConst) -> Result<bool>

source§

fn create_ext( &mut self, kname: &str, prog: &impl ProgramSourceTraitConst, buildopts: &str, errmsg: &mut String ) -> Result<bool>

C++ default parameters Read more
source§

fn create_ext_def( &mut self, kname: &str, prog: &impl ProgramSourceTraitConst, buildopts: &str ) -> Result<bool>

source§

unsafe fn set_2( &mut self, i: i32, value: *const c_void, sz: size_t ) -> Result<i32>

source§

fn set_3(&mut self, i: i32, image_2d: &impl Image2DTraitConst) -> Result<i32>

source§

fn set_umat(&mut self, i: i32, m: &impl UMatTraitConst) -> Result<i32>

source§

fn set_kernel_arg( &mut self, i: i32, arg: &impl KernelArgTraitConst ) -> Result<i32>

source§

fn run( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], sync: bool, q: &impl QueueTraitConst ) -> Result<bool>

Run the OpenCL kernel (globalsize value may be adjusted) Read more
source§

fn run_def( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], sync: bool ) -> Result<bool>

Run the OpenCL kernel (globalsize value may be adjusted) Read more
source§

fn run_( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], sync: bool, q: &impl QueueTraitConst ) -> Result<bool>

Run the OpenCL kernel Read more
source§

fn run__def( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], sync: bool ) -> Result<bool>

Run the OpenCL kernel Read more
source§

fn run_task(&mut self, sync: bool, q: &impl QueueTraitConst) -> Result<bool>

C++ default parameters Read more
source§

fn run_task_def(&mut self, sync: bool) -> Result<bool>

source§

fn run_profiling( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t], q: &impl QueueTraitConst ) -> Result<i64>

Similar to synchronized run_() call with returning of kernel execution time Read more
source§

fn run_profiling_def( &mut self, dims: i32, globalsize: &mut [size_t], localsize: &mut [size_t] ) -> Result<i64>

Similar to synchronized run_() call with returning of kernel execution time Read more
source§

impl KernelTraitConst for BoxedRefMut<'_, Kernel>

source§

fn as_raw_Kernel(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn empty(&self) -> Result<bool>

source§

fn work_group_size(&self) -> Result<size_t>

source§

fn prefered_work_group_size_multiple(&self) -> Result<size_t>

source§

fn compile_work_group_size(&self, wsz: &mut [size_t]) -> Result<bool>

source§

fn local_mem_size(&self) -> Result<size_t>

source§

fn ptr(&self) -> Result<*mut c_void>

source§

impl KeyPointTrait for BoxedRefMut<'_, KeyPoint>

source§

fn as_raw_mut_KeyPoint( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_pt(&mut self, val: Point2f)

coordinates of the keypoints
source§

fn set_size(&mut self, val: f32)

diameter of the meaningful keypoint neighborhood
source§

fn set_angle(&mut self, val: f32)

computed orientation of the keypoint (-1 if not applicable); it’s in [0,360) degrees and measured relative to image coordinate system, ie in clockwise.
source§

fn set_response(&mut self, val: f32)

the response by which the most strong keypoints have been selected. Can be used for the further sorting or subsampling
source§

fn set_octave(&mut self, val: i32)

octave (pyramid layer) from which the keypoint has been extracted
source§

fn set_class_id(&mut self, val: i32)

object class (if the keypoints need to be clustered by an object they belong to)
source§

impl KeyPointTraitConst for BoxedRefMut<'_, KeyPoint>

source§

fn as_raw_KeyPoint(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn pt(&self) -> Point2f

coordinates of the keypoints
source§

fn size(&self) -> f32

diameter of the meaningful keypoint neighborhood
source§

fn angle(&self) -> f32

computed orientation of the keypoint (-1 if not applicable); it’s in [0,360) degrees and measured relative to image coordinate system, ie in clockwise.
source§

fn response(&self) -> f32

the response by which the most strong keypoints have been selected. Can be used for the further sorting or subsampling
source§

fn octave(&self) -> i32

octave (pyramid layer) from which the keypoint has been extracted
source§

fn class_id(&self) -> i32

object class (if the keypoints need to be clustered by an object they belong to)
source§

fn hash(&self) -> Result<size_t>

source§

impl KeypointsModelTrait for BoxedRefMut<'_, KeypointsModel>

source§

fn as_raw_mut_KeypointsModel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn estimate( &mut self, frame: &impl ToInputArray, thresh: f32 ) -> Result<Vector<Point2f>>

Given the @p input frame, create input blob, run net Read more
source§

fn estimate_def(&mut self, frame: &impl ToInputArray) -> Result<Vector<Point2f>>

Given the @p input frame, create input blob, run net Read more
source§

impl KeypointsModelTraitConst for BoxedRefMut<'_, KeypointsModel>

source§

fn as_raw_KeypointsModel( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl LDATrait for BoxedRefMut<'_, LDA>

source§

fn as_raw_mut_LDA( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn load(&mut self, filename: &str) -> Result<()>

Deserializes this object from a given filename.
source§

fn load_1(&mut self, node: &impl FileStorageTraitConst) -> Result<()>

Deserializes this object from a given cv::FileStorage.
source§

fn compute( &mut self, src: &impl ToInputArray, labels: &impl ToInputArray ) -> Result<()>

Compute the discriminants for data in src (row aligned) and labels.
source§

fn project(&mut self, src: &impl ToInputArray) -> Result<Mat>

Projects samples into the LDA subspace. src may be one or more row aligned samples.
source§

fn reconstruct(&mut self, src: &impl ToInputArray) -> Result<Mat>

Reconstructs projections from the LDA subspace. src may be one or more row aligned projections.
source§

impl LDATraitConst for BoxedRefMut<'_, LDA>

source§

fn as_raw_LDA(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn save(&self, filename: &str) -> Result<()>

Serializes this object to a given filename.
source§

fn save_1(&self, fs: &mut impl FileStorageTrait) -> Result<()>

Serializes this object to a given cv::FileStorage.
source§

fn eigenvectors(&self) -> Result<Mat>

Returns the eigenvectors of this LDA.
source§

fn eigenvalues(&self) -> Result<Mat>

Returns the eigenvalues of this LDA.
source§

impl LRNLayerTrait for BoxedRefMut<'_, LRNLayer>

source§

fn as_raw_mut_LRNLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_type(&mut self, val: i32)

source§

fn set_size(&mut self, val: i32)

source§

fn set_alpha(&mut self, val: f32)

source§

fn set_beta(&mut self, val: f32)

source§

fn set_bias(&mut self, val: f32)

source§

fn set_norm_by_size(&mut self, val: bool)

source§

impl LRNLayerTraitConst for BoxedRefMut<'_, LRNLayer>

source§

fn as_raw_LRNLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn typ(&self) -> i32

source§

fn size(&self) -> i32

source§

fn alpha(&self) -> f32

source§

fn beta(&self) -> f32

source§

fn bias(&self) -> f32

source§

fn norm_by_size(&self) -> bool

source§

impl LSTMLayerTrait for BoxedRefMut<'_, LSTMLayer>

source§

fn as_raw_mut_LSTMLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_weights( &mut self, wh: &impl MatTraitConst, wx: &impl MatTraitConst, b: &impl MatTraitConst ) -> Result<()>

👎Deprecated: Use LayerParams::blobs instead.
Deprecated: Use LayerParams::blobs instead. Set trained weights for LSTM layer. Read more
source§

fn set_out_shape(&mut self, out_tail_shape: &MatShape) -> Result<()>

Specifies shape of output blob which will be [[T], N] + @p outTailShape. @details If this parameter is empty or unset then @p outTailShape = [Wh.size(0)] will be used, where Wh is parameter from setWeights(). Read more
source§

fn set_out_shape_def(&mut self) -> Result<()>

Specifies shape of output blob which will be [[T], N] + @p outTailShape. @details If this parameter is empty or unset then @p outTailShape = [Wh.size(0)] will be used, where Wh is parameter from setWeights(). Read more
source§

fn set_use_timstamps_dim(&mut self, use_: bool) -> Result<()>

👎Deprecated: Use flag produce_cell_output in LayerParams.
Deprecated: Use flag produce_cell_output in LayerParams. Specifies either interpret first dimension of input blob as timestamp dimension either as sample. Read more
source§

fn set_use_timstamps_dim_def(&mut self) -> Result<()>

👎Deprecated: Use flag produce_cell_output in LayerParams.
Deprecated: Use flag produce_cell_output in LayerParams. Specifies either interpret first dimension of input blob as timestamp dimension either as sample. Read more
source§

fn set_produce_cell_output(&mut self, produce: bool) -> Result<()>

👎Deprecated: Use flag use_timestamp_dim in LayerParams.
Deprecated: Use flag use_timestamp_dim in LayerParams. If this flag is set to true then layer will produce @f$ c_t @f$ as second output. @details Shape of the second output is the same as first output. Read more
source§

fn set_produce_cell_output_def(&mut self) -> Result<()>

👎Deprecated: Use flag use_timestamp_dim in LayerParams.
Deprecated: Use flag use_timestamp_dim in LayerParams. If this flag is set to true then layer will produce @f$ c_t @f$ as second output. @details Shape of the second output is the same as first output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

source§

impl LSTMLayerTraitConst for BoxedRefMut<'_, LSTMLayer>

source§

fn as_raw_LSTMLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl LayerFactoryTrait for BoxedRefMut<'_, LayerFactory>

source§

fn as_raw_mut_LayerFactory( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl LayerFactoryTraitConst for BoxedRefMut<'_, LayerFactory>

source§

fn as_raw_LayerFactory(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl LayerParamsTrait for BoxedRefMut<'_, LayerParams>

source§

fn as_raw_mut_LayerParams( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters stored as blobs.
source§

fn set_name(&mut self, val: &str)

Name of the layer instance (optional, can be used internal purposes).
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory (optional).
source§

impl LayerParamsTraitConst for BoxedRefMut<'_, LayerParams>

source§

fn as_raw_LayerParams(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters stored as blobs.
source§

fn name(&self) -> String

Name of the layer instance (optional, can be used internal purposes).
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory (optional).
source§

impl LayerTrait for BoxedRefMut<'_, AbsLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, AccumLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ActivationLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ActivationLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, BNLLLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, BaseConvolutionLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, BatchNormLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, BlankLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ChannelsPReLULayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ConcatLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ConstLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ConvolutionLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, CorrelationLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, CropAndResizeLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, CropLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, CumSumLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, DataAugmentationLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, DeconvolutionLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, DequantizeLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, DetectionOutputLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ELULayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, EltwiseLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, EltwiseLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ExpLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, FlattenLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, FlowWarpLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, GRULayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, InnerProductLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, InnerProductLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, InterpLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, LRNLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, LSTMLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, Layer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, MVNLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, MaxUnpoolLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, MishLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, NormalizeBBoxLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, PaddingLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, PermuteLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, PoolingLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, PoolingLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, PowerLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, PriorBoxLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ProposalLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, QuantizeLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, RNNLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ReLU6Layer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ReLULayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, RegionLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ReorgLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, RequantizeLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ReshapeLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ResizeLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ScaleLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ScaleLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ShiftLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ShiftLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, ShuffleChannelLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, SigmoidLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, SliceLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, SoftmaxLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, SplitLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, SwishLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTrait for BoxedRefMut<'_, TanHLayer>

source§

fn as_raw_mut_Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_blobs(&mut self, val: Vector<Mat>)

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn set_name(&mut self, val: &str)

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn set_type(&mut self, val: &str)

Type name which was used for creating layer by layer factory.
source§

fn set_preferable_target(&mut self, val: i32)

prefer target for layer forwarding
source§

fn finalize( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray ) -> Result<()>

Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn forward_mat( &mut self, input: &mut Vector<Mat>, output: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays) instead
Given the @p input blobs, computes the output @p blobs. Read more
source§

fn forward( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn try_quantize( &mut self, scales: &Vector<Vector<f32>>, zeropoints: &Vector<Vector<i32>>, params: &mut impl LayerParamsTrait ) -> Result<bool>

Tries to quantize the given layer and compute the quantization parameters required for fixed point implementation. Read more
source§

fn forward_fallback( &mut self, inputs: &impl ToInputArray, outputs: &mut impl ToOutputArray, internals: &mut impl ToOutputArray ) -> Result<()>

Given the @p input blobs, computes the output @p blobs. Read more
source§

fn finalize_mat_to( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn finalize_mat(&mut self, inputs: &Vector<Mat>) -> Result<Vector<Mat>>

👎Deprecated: Use Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays) instead
Computes and sets internal parameters according to inputs, outputs and blobs. Read more
source§

fn run( &mut self, inputs: &Vector<Mat>, outputs: &mut Vector<Mat>, internals: &mut Vector<Mat> ) -> Result<()>

👎Deprecated: This method will be removed in the future release.
Allocates layer and computes output. Read more
source§

fn input_name_to_index(&mut self, input_name: &str) -> Result<i32>

Returns index of input blob into the input array. Read more
source§

fn output_name_to_index(&mut self, output_name: &str) -> Result<i32>

Returns index of output blob in output array. Read more
source§

fn support_backend(&mut self, backend_id: i32) -> Result<bool>

Ask layer if it support specific backend for doing computations. Read more
source§

fn init_halide( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns Halide backend node. Read more
source§

fn init_inf_engine( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

fn init_ngraph( &mut self, inputs: &Vector<Ptr<BackendWrapper>>, nodes: &Vector<Ptr<BackendNode>> ) -> Result<Ptr<BackendNode>>

source§

fn init_vk_com( &mut self, inputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

source§

unsafe fn init_cuda( &mut self, context: *mut c_void, inputs: &Vector<Ptr<BackendWrapper>>, outputs: &Vector<Ptr<BackendWrapper>> ) -> Result<Ptr<BackendNode>>

Returns a CUDA backend node Read more
source§

fn try_attach(&mut self, node: &Ptr<BackendNode>) -> Result<Ptr<BackendNode>>

Implement layers fusing. Read more
source§

fn set_activation(&mut self, layer: &Ptr<ActivationLayer>) -> Result<bool>

Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. Read more
source§

fn try_fuse(&mut self, top: &mut Ptr<Layer>) -> Result<bool>

Try to fuse current layer with a next one Read more
source§

fn unset_attached(&mut self) -> Result<()>

“Deattaches” all the layers, attached to particular layer.
source§

fn update_memory_shapes(&mut self, inputs: &Vector<MatShape>) -> Result<bool>

source§

fn set_params_from(&mut self, params: &impl LayerParamsTraitConst) -> Result<()>

source§

impl LayerTraitConst for BoxedRefMut<'_, AbsLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, AccumLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ActivationLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ActivationLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, BNLLLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, BaseConvolutionLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, BatchNormLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, BatchNormLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, BlankLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ChannelsPReLULayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ConcatLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ConstLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ConvolutionLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ConvolutionLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, CorrelationLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, CropAndResizeLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, CropLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, CumSumLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, DataAugmentationLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, DeconvolutionLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, DequantizeLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, DetectionOutputLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ELULayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, EltwiseLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, EltwiseLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ExpLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, FlattenLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, FlowWarpLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, GRULayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, InnerProductLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, InnerProductLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, InterpLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, LRNLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, LSTMLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, Layer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, MVNLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, MishLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, PaddingLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, PermuteLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, PoolingLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, PoolingLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, PowerLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, PriorBoxLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ProposalLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, QuantizeLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, RNNLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ReLU6Layer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ReLULayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, RegionLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ReorgLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, RequantizeLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ReshapeLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ResizeLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ScaleLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ScaleLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ShiftLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ShiftLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, ShuffleChannelLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, SigmoidLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, SliceLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, SoftmaxLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, SplitLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, SwishLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LayerTraitConst for BoxedRefMut<'_, TanHLayer>

source§

fn as_raw_Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn blobs(&self) -> Vector<Mat>

List of learned parameters must be stored here to allow read them by using Net::getParam().
source§

fn name(&self) -> String

Name of the layer instance, can be used for logging or other internal purposes.
source§

fn typ(&self) -> String

Type name which was used for creating layer by layer factory.
source§

fn preferable_target(&self) -> i32

prefer target for layer forwarding
source§

fn apply_halide_scheduler( &self, node: &mut Ptr<BackendNode>, inputs: &Vector<Mat>, outputs: &Vector<Mat>, target_id: i32 ) -> Result<()>

Automatic Halide scheduling based on layer hyper-parameters. Read more
source§

fn get_scale_shift( &self, scale: &mut impl MatTrait, shift: &mut impl MatTrait ) -> Result<()>

Returns parameters of layers with channel-wise multiplication and addition. Read more
source§

fn get_scale_zeropoint( &self, scale: &mut f32, zeropoint: &mut i32 ) -> Result<()>

Returns scale and zeropoint of layers Read more
source§

fn get_memory_shapes( &self, inputs: &Vector<MatShape>, required_outputs: i32, outputs: &mut Vector<MatShape>, internals: &mut Vector<MatShape> ) -> Result<bool>

source§

fn get_flops( &self, inputs: &Vector<MatShape>, outputs: &Vector<MatShape> ) -> Result<i64>

source§

impl LineIteratorTrait for BoxedRefMut<'_, LineIterator>

source§

fn as_raw_mut_LineIterator( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn ptr_mut(&mut self) -> *mut u8

source§

unsafe fn set_ptr(&mut self, val: *const u8)

source§

fn set_step(&mut self, val: i32)

source§

fn set_elem_size(&mut self, val: i32)

source§

fn set_err(&mut self, val: i32)

source§

fn set_count(&mut self, val: i32)

source§

fn set_minus_delta(&mut self, val: i32)

source§

fn set_plus_delta(&mut self, val: i32)

source§

fn set_minus_step(&mut self, val: i32)

source§

fn set_plus_step(&mut self, val: i32)

source§

fn set_minus_shift(&mut self, val: i32)

source§

fn set_plus_shift(&mut self, val: i32)

source§

fn set_p(&mut self, val: Point)

source§

fn set_ptmode(&mut self, val: bool)

source§

fn init( &mut self, img: &impl MatTraitConst, bounding_area_rect: Rect, pt1: Point, pt2: Point, connectivity: i32, left_to_right: bool ) -> Result<()>

source§

fn try_deref_mut(&mut self) -> Result<*mut u8>

returns pointer to the current pixel
source§

fn incr(&mut self) -> Result<LineIterator>

prefix increment operator (++it). shifts iterator to the next pixel
source§

impl LineIteratorTraitConst for BoxedRefMut<'_, LineIterator>

source§

fn as_raw_LineIterator(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn ptr(&self) -> *const u8

source§

fn ptr0(&self) -> *const u8

source§

fn step(&self) -> i32

source§

fn elem_size(&self) -> i32

source§

fn err(&self) -> i32

source§

fn count(&self) -> i32

source§

fn minus_delta(&self) -> i32

source§

fn plus_delta(&self) -> i32

source§

fn minus_step(&self) -> i32

source§

fn plus_step(&self) -> i32

source§

fn minus_shift(&self) -> i32

source§

fn plus_shift(&self) -> i32

source§

fn p(&self) -> Point

source§

fn ptmode(&self) -> bool

source§

fn pos(&self) -> Result<Point>

returns coordinates of the current pixel
source§

impl LineSegmentDetectorTrait for BoxedRefMut<'_, LineSegmentDetector>

source§

fn as_raw_mut_LineSegmentDetector( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn detect( &mut self, image: &impl ToInputArray, lines: &mut impl ToOutputArray, width: &mut impl ToOutputArray, prec: &mut impl ToOutputArray, nfa: &mut impl ToOutputArray ) -> Result<()>

Finds lines in the input image. Read more
source§

fn detect_def( &mut self, image: &impl ToInputArray, lines: &mut impl ToOutputArray ) -> Result<()>

Finds lines in the input image. Read more
source§

fn draw_segments( &mut self, image: &mut impl ToInputOutputArray, lines: &impl ToInputArray ) -> Result<()>

Draws the line segments on a given image. Read more
source§

fn compare_segments( &mut self, size: Size, lines1: &impl ToInputArray, lines2: &impl ToInputArray, image: &mut impl ToInputOutputArray ) -> Result<i32>

Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels. Read more
source§

fn compare_segments_def( &mut self, size: Size, lines1: &impl ToInputArray, lines2: &impl ToInputArray ) -> Result<i32>

Draws two groups of lines in blue and red, counting the non overlapping (mismatching) pixels. Read more
source§

impl LineSegmentDetectorTraitConst for BoxedRefMut<'_, LineSegmentDetector>

source§

fn as_raw_LineSegmentDetector( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl LogTagTrait for BoxedRefMut<'_, LogTag>

source§

fn as_raw_mut_LogTag( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_level(&mut self, val: LogLevel)

source§

impl LogTagTraitConst for BoxedRefMut<'_, LogTag>

source§

fn as_raw_LogTag(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn name(&self) -> String

source§

fn level(&self) -> LogLevel

source§

impl MVNLayerTrait for BoxedRefMut<'_, MVNLayer>

source§

fn as_raw_mut_MVNLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_eps(&mut self, val: f32)

source§

fn set_norm_variance(&mut self, val: bool)

source§

fn set_across_channels(&mut self, val: bool)

source§

impl MVNLayerTraitConst for BoxedRefMut<'_, MVNLayer>

source§

fn as_raw_MVNLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn eps(&self) -> f32

source§

fn norm_variance(&self) -> bool

source§

fn across_channels(&self) -> bool

source§

impl MatConstIteratorTrait for BoxedRefMut<'_, MatConstIterator>

source§

fn as_raw_mut_MatConstIterator( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_elem_size(&mut self, val: size_t)

source§

fn set(&mut self, it: &impl MatConstIteratorTraitConst) -> Result<()>

copy operator
source§

fn decr(&mut self) -> Result<MatConstIterator>

decrements the iterator
source§

fn incr(&mut self) -> Result<MatConstIterator>

increments the iterator
source§

fn seek(&mut self, ofs: ptrdiff_t, relative: bool) -> Result<()>

C++ default parameters Read more
source§

fn seek_def(&mut self, ofs: ptrdiff_t) -> Result<()>

source§

fn seek_idx(&mut self, _idx: &i32, relative: bool) -> Result<()>

C++ default parameters Read more
source§

fn seek_idx_def(&mut self, _idx: &i32) -> Result<()>

source§

impl MatConstIteratorTraitConst for BoxedRefMut<'_, MatConstIterator>

source§

fn as_raw_MatConstIterator( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn m(&self) -> Mat

source§

fn elem_size(&self) -> size_t

source§

fn ptr(&self) -> *const u8

source§

fn slice_start(&self) -> *const u8

source§

fn slice_end(&self) -> *const u8

source§

fn try_deref(&self) -> Result<*const u8>

returns the current matrix element
source§

fn get(&self, i: ptrdiff_t) -> Result<*const u8>

returns the i-th matrix element, relative to the current
source§

fn pos(&self) -> Result<Point>

returns the current iterator position
source§

unsafe fn pos_to(&self, _idx: *mut i32) -> Result<()>

returns the current iterator position
source§

fn lpos(&self) -> Result<ptrdiff_t>

source§

fn typ(&self) -> i32

source§

impl MatExprTrait for BoxedRefMut<'_, MatExpr>

source§

fn as_raw_mut_MatExpr( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_flags(&mut self, val: i32)

source§

fn set_a(&mut self, val: Mat)

source§

fn set_b(&mut self, val: Mat)

source§

fn set_c(&mut self, val: Mat)

source§

fn set_alpha(&mut self, val: f64)

source§

fn set_beta(&mut self, val: f64)

source§

fn set_s(&mut self, val: Scalar)

source§

fn swap(&mut self, b: &mut impl MatExprTrait) -> Result<()>

source§

impl MatExprTraitConst for BoxedRefMut<'_, MatExpr>

source§

fn as_raw_MatExpr(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn flags(&self) -> i32

source§

fn a(&self) -> Mat

source§

fn b(&self) -> Mat

source§

fn c(&self) -> Mat

source§

fn alpha(&self) -> f64

source§

fn beta(&self) -> f64

source§

fn s(&self) -> Scalar

source§

fn to_mat(&self) -> Result<Mat>

source§

fn size(&self) -> Result<Size>

source§

fn typ(&self) -> Result<i32>

source§

fn row(&self, y: i32) -> Result<MatExpr>

source§

fn col(&self, x: i32) -> Result<MatExpr>

source§

fn diag(&self, d: i32) -> Result<MatExpr>

C++ default parameters Read more
source§

fn diag_def(&self) -> Result<MatExpr>

source§

fn rowscols( &self, row_range: &impl RangeTraitConst, col_range: &impl RangeTraitConst ) -> Result<MatExpr>

source§

fn roi(&self, roi: Rect) -> Result<MatExpr>

source§

fn t(&self) -> Result<MatExpr>

source§

fn inv(&self, method: i32) -> Result<MatExpr>

C++ default parameters Read more
source§

fn inv_def(&self) -> Result<MatExpr>

source§

fn mul_matexpr(&self, e: &impl MatExprTraitConst, scale: f64) -> Result<MatExpr>

C++ default parameters Read more
source§

fn mul_matexpr_def(&self, e: &impl MatExprTraitConst) -> Result<MatExpr>

source§

fn mul(&self, m: &impl MatTraitConst, scale: f64) -> Result<MatExpr>

C++ default parameters Read more
source§

fn mul_def(&self, m: &impl MatTraitConst) -> Result<MatExpr>

source§

fn cross(&self, m: &impl MatTraitConst) -> Result<Mat>

source§

fn dot(&self, m: &impl MatTraitConst) -> Result<f64>

source§

impl MatOpTrait for BoxedRefMut<'_, MatOp>

source§

fn as_raw_mut_MatOp( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl MatOpTraitConst for BoxedRefMut<'_, MatOp>

source§

fn as_raw_MatOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn element_wise(&self, expr: &impl MatExprTraitConst) -> Result<bool>

source§

fn assign( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait, typ: i32 ) -> Result<()>

C++ default parameters Read more
source§

fn assign_def( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait ) -> Result<()>

source§

fn roi( &self, expr: &impl MatExprTraitConst, row_range: &impl RangeTraitConst, col_range: &impl RangeTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn diag( &self, expr: &impl MatExprTraitConst, d: i32, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn aug_assign_add( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait ) -> Result<()>

source§

fn aug_assign_subtract( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait ) -> Result<()>

source§

fn aug_assign_multiply( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait ) -> Result<()>

source§

fn aug_assign_divide( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait ) -> Result<()>

source§

fn aug_assign_and( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait ) -> Result<()>

source§

fn aug_assign_or( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait ) -> Result<()>

source§

fn aug_assign_xor( &self, expr: &impl MatExprTraitConst, m: &mut impl MatTrait ) -> Result<()>

source§

fn add( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn add_scalar( &self, expr1: &impl MatExprTraitConst, s: Scalar, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn subtract( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn subtract_scalar( &self, s: Scalar, expr: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn multiply( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, scale: f64 ) -> Result<()>

C++ default parameters Read more
source§

fn multiply_def( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn multiply_f64( &self, expr1: &impl MatExprTraitConst, s: f64, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn divide( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait, scale: f64 ) -> Result<()>

C++ default parameters Read more
source§

fn divide_def( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn divide_f64( &self, s: f64, expr: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn abs( &self, expr: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn transpose( &self, expr: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn matmul( &self, expr1: &impl MatExprTraitConst, expr2: &impl MatExprTraitConst, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn invert( &self, expr: &impl MatExprTraitConst, method: i32, res: &mut impl MatExprTrait ) -> Result<()>

source§

fn size(&self, expr: &impl MatExprTraitConst) -> Result<Size>

source§

fn typ(&self, expr: &impl MatExprTraitConst) -> Result<i32>

source§

impl MatSizeTrait for BoxedRefMut<'_, MatSize>

source§

fn as_raw_mut_MatSize( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn p_mut(&mut self) -> *mut i32

source§

unsafe fn set_p(&mut self, val: *const i32)

source§

fn get_mut(&mut self, i: i32) -> Result<i32>

source§

impl MatSizeTraitConst for BoxedRefMut<'_, MatSize>

source§

fn as_raw_MatSize(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn p(&self) -> *const i32

source§

fn dims(&self) -> i32

source§

fn apply(&self) -> Result<Size>

source§

fn get(&self, i: i32) -> Result<i32>

source§

fn to_xconst_i32(&self) -> *const i32

source§

fn equals(&self, sz: &impl MatSizeTraitConst) -> bool

source§

fn not_equals(&self, sz: &impl MatSizeTraitConst) -> bool

source§

impl MatStepTrait for BoxedRefMut<'_, MatStep>

source§

fn as_raw_mut_MatStep( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn p_mut(&mut self) -> *mut size_t

source§

unsafe fn set_p(&mut self, val: *const size_t)

source§

fn buf_mut(&mut self) -> &mut [size_t; 2]

source§

fn get_mut(&mut self, i: i32) -> size_t

source§

fn set_size_t(&mut self, s: size_t) -> Result<()>

source§

impl MatStepTraitConst for BoxedRefMut<'_, MatStep>

source§

fn as_raw_MatStep(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn p(&self) -> *const size_t

source§

fn buf(&self) -> &[size_t; 2]

source§

fn get(&self, i: i32) -> size_t

source§

fn to_size_t(&self) -> Result<size_t>

source§

impl MatTrait for BoxedRefMut<'_, Mat>

source§

fn as_raw_mut_Mat( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_flags(&mut self, val: i32)

! includes several bit-fields: Read more
source§

fn set_dims(&mut self, val: i32)

the matrix dimensionality, >= 2
source§

fn set_rows(&mut self, val: i32)

the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
source§

fn set_cols(&mut self, val: i32)

the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
source§

fn data_mut(&mut self) -> *mut u8

pointer to the data
source§

unsafe fn set_data(&mut self, val: *const u8)

pointer to the data
source§

fn u(&mut self) -> UMatData

interaction with UMat
source§

fn set_u(&mut self, val: &impl UMatDataTraitConst)

interaction with UMat
source§

fn set_size(&mut self, val: MatSize)

source§

fn set_matexpr(&mut self, expr: &impl MatExprTraitConst) -> Result<()>

assignment operators Read more
source§

fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, Mat>>

Creates a matrix header for the specified matrix row. Read more
source§

fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, Mat>>

Creates a matrix header for the specified matrix column. Read more
source§

fn row_bounds_mut( &mut self, startrow: i32, endrow: i32 ) -> Result<BoxedRefMut<'_, Mat>>

Creates a matrix header for the specified row span. Read more
source§

fn row_range_mut( &mut self, r: &impl RangeTraitConst ) -> Result<BoxedRefMut<'_, Mat>>

@overload Read more
source§

fn col_bounds_mut( &mut self, startcol: i32, endcol: i32 ) -> Result<BoxedRefMut<'_, Mat>>

Creates a matrix header for the specified column span. Read more
source§

fn col_range_mut( &mut self, r: &impl RangeTraitConst ) -> Result<BoxedRefMut<'_, Mat>>

@overload Read more
source§

fn diag_def_mut(&mut self) -> Result<BoxedRefMut<'_, Mat>>

Extracts a diagonal from a matrix Read more
source§

fn diag_mut(&mut self, d: i32) -> Result<BoxedRefMut<'_, Mat>>

Extracts a diagonal from a matrix Read more
source§

fn set_scalar(&mut self, s: Scalar) -> Result<()>

Sets all or some of the array elements to the specified value. Read more
source§

fn set_to( &mut self, value: &impl ToInputArray, mask: &impl ToInputArray ) -> Result<Mat>

Sets all or some of the array elements to the specified value. Read more
source§

fn set_to_def(&mut self, value: &impl ToInputArray) -> Result<Mat>

Sets all or some of the array elements to the specified value. Read more
source§

fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, Mat>>

Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§

fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, Mat>>

Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§

fn reshape_nd_mut( &mut self, cn: i32, newsz: &[i32] ) -> Result<BoxedRefMut<'_, Mat>>

@overload
source§

fn reshape_nd_vec_mut( &mut self, cn: i32, newshape: &Vector<i32> ) -> Result<BoxedRefMut<'_, Mat>>

@overload
source§

unsafe fn create_rows_cols( &mut self, rows: i32, cols: i32, typ: i32 ) -> Result<()>

Allocates new array data if needed. Read more
source§

unsafe fn create_size(&mut self, size: Size, typ: i32) -> Result<()>

Allocates new array data if needed. Read more
source§

unsafe fn create_nd(&mut self, sizes: &[i32], typ: i32) -> Result<()>

Allocates new array data if needed. Read more
source§

unsafe fn create_nd_vec(&mut self, sizes: &Vector<i32>, typ: i32) -> Result<()>

Allocates new array data if needed. Read more
source§

unsafe fn addref(&mut self) -> Result<()>

Increments the reference counter. Read more
source§

unsafe fn release(&mut self) -> Result<()>

Decrements the reference counter and deallocates the matrix if needed. Read more
source§

fn deallocate(&mut self) -> Result<()>

internal use function, consider to use ‘release’ method instead; deallocates the matrix data
source§

fn reserve(&mut self, sz: size_t) -> Result<()>

Reserves space for the certain number of rows. Read more
source§

fn reserve_buffer(&mut self, sz: size_t) -> Result<()>

Reserves space for the certain number of bytes. Read more
source§

fn resize(&mut self, sz: size_t) -> Result<()>

Changes the number of matrix rows. Read more
source§

fn resize_with_default(&mut self, sz: size_t, s: Scalar) -> Result<()>

Changes the number of matrix rows. Read more
source§

fn push_back(&mut self, m: &impl MatTraitConst) -> Result<()>

Adds elements to the bottom of the matrix. Read more
source§

fn pop_back(&mut self, nelems: size_t) -> Result<()>

Removes elements from the bottom of the matrix. Read more
source§

fn pop_back_def(&mut self) -> Result<()>

Removes elements from the bottom of the matrix. Read more
source§

fn adjust_roi( &mut self, dtop: i32, dbottom: i32, dleft: i32, dright: i32 ) -> Result<Mat>

Adjusts a submatrix size and position within the parent matrix. Read more
source§

fn rowscols_mut( &mut self, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRefMut<'_, Mat>>

Extracts a rectangular submatrix. Read more
source§

fn roi_mut(&mut self, roi: Rect) -> Result<BoxedRefMut<'_, Mat>>

@overload Read more
source§

fn ranges_mut(&mut self, ranges: &Vector<Range>) -> Result<BoxedRefMut<'_, Mat>>

@overload Read more
source§

fn ptr_mut(&mut self, i0: i32) -> Result<*mut u8>

Returns a pointer to the specified matrix row. Read more
source§

fn ptr_mut_def(&mut self) -> Result<*mut u8>

Returns a pointer to the specified matrix row. Read more
source§

fn ptr_2d_mut(&mut self, row: i32, col: i32) -> Result<*mut u8>

Returns a pointer to the specified matrix row. Read more
source§

fn ptr_3d_mut(&mut self, i0: i32, i1: i32, i2: i32) -> Result<*mut u8>

Returns a pointer to the specified matrix row. Read more
source§

fn ptr_nd_mut(&mut self, idx: &[i32]) -> Result<*mut u8>

Returns a pointer to the specified matrix row. Read more
source§

fn at_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>

Returns a reference to the specified array element. Read more
source§

fn at_2d_mut<T: DataType>(&mut self, row: i32, col: i32) -> Result<&mut T>

Returns a reference to the specified array element. Read more
source§

fn at_3d_mut<T: DataType>( &mut self, i0: i32, i1: i32, i2: i32 ) -> Result<&mut T>

Returns a reference to the specified array element. Read more
source§

fn at_nd_mut<T: DataType>(&mut self, idx: &[i32]) -> Result<&mut T>

Returns a reference to the specified array element. Read more
source§

fn at_pt_mut<T: DataType>(&mut self, pt: Point) -> Result<&mut T>

Returns a reference to the specified array element. Read more
source§

fn set(&mut self, m: Mat) -> Result<()>

source§

fn update_continuity_flag(&mut self) -> Result<()>

internal use method: updates the continuity flag
source§

impl MatTraitConst for BoxedRefMut<'_, Mat>

source§

fn as_raw_Mat(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn flags(&self) -> i32

! includes several bit-fields: Read more
source§

fn dims(&self) -> i32

the matrix dimensionality, >= 2
source§

fn rows(&self) -> i32

the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
source§

fn cols(&self) -> i32

the number of rows and columns or (-1, -1) when the matrix has more than 2 dimensions
source§

fn data(&self) -> *const u8

pointer to the data
source§

fn datastart(&self) -> *const u8

helper fields used in locateROI and adjustROI
source§

fn dataend(&self) -> *const u8

source§

fn datalimit(&self) -> *const u8

source§

fn mat_size(&self) -> MatSize

source§

fn mat_step(&self) -> MatStep

source§

fn get_umat( &self, access_flags: AccessFlag, usage_flags: UMatUsageFlags ) -> Result<UMat>

retrieve UMat from Mat Read more
source§

fn get_umat_def(&self, access_flags: AccessFlag) -> Result<UMat>

retrieve UMat from Mat Read more
source§

fn row(&self, y: i32) -> Result<BoxedRef<'_, Mat>>

Creates a matrix header for the specified matrix row. Read more
source§

fn col(&self, x: i32) -> Result<BoxedRef<'_, Mat>>

Creates a matrix header for the specified matrix column. Read more
source§

fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, Mat>>

Creates a matrix header for the specified row span. Read more
source§

fn row_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, Mat>>

Creates a matrix header for the specified row span. Read more
source§

fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, Mat>>

Creates a matrix header for the specified column span. Read more
source§

fn col_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, Mat>>

Creates a matrix header for the specified column span. Read more
source§

fn diag(&self, d: i32) -> Result<BoxedRef<'_, Mat>>

Extracts a diagonal from a matrix Read more
source§

fn diag_def(&self) -> Result<BoxedRef<'_, Mat>>

Extracts a diagonal from a matrix Read more
source§

fn try_clone(&self) -> Result<Mat>

Creates a full copy of the array and the underlying data. Read more
source§

fn copy_to(&self, m: &mut impl ToOutputArray) -> Result<()>

Copies the matrix to another one. Read more
source§

fn copy_to_masked( &self, m: &mut impl ToOutputArray, mask: &impl ToInputArray ) -> Result<()>

Copies the matrix to another one. Read more
source§

fn convert_to( &self, m: &mut impl ToOutputArray, rtype: i32, alpha: f64, beta: f64 ) -> Result<()>

Converts an array to another data type with optional scaling. Read more
source§

fn convert_to_def(&self, m: &mut impl ToOutputArray, rtype: i32) -> Result<()>

Converts an array to another data type with optional scaling. Read more
source§

fn assign_to(&self, m: &mut impl MatTrait, typ: i32) -> Result<()>

Provides a functional form of convertTo. Read more
source§

fn assign_to_def(&self, m: &mut impl MatTrait) -> Result<()>

Provides a functional form of convertTo. Read more
source§

fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, Mat>>

Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§

fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, Mat>>

Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§

fn reshape_nd(&self, cn: i32, newsz: &[i32]) -> Result<BoxedRef<'_, Mat>>

Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§

fn reshape_nd_vec( &self, cn: i32, newshape: &Vector<i32> ) -> Result<BoxedRef<'_, Mat>>

Changes the shape and/or the number of channels of a 2D matrix without copying the data. Read more
source§

fn t(&self) -> Result<MatExpr>

Transposes a matrix. Read more
source§

fn inv(&self, method: i32) -> Result<MatExpr>

Inverses a matrix. Read more
source§

fn inv_def(&self) -> Result<MatExpr>

Inverses a matrix. Read more
source§

fn mul(&self, m: &impl ToInputArray, scale: f64) -> Result<MatExpr>

Performs an element-wise multiplication or division of the two matrices. Read more
source§

fn mul_def(&self, m: &impl ToInputArray) -> Result<MatExpr>

Performs an element-wise multiplication or division of the two matrices. Read more
source§

fn cross(&self, m: &impl ToInputArray) -> Result<Mat>

Computes a cross-product of two 3-element vectors. Read more
source§

fn dot(&self, m: &impl ToInputArray) -> Result<f64>

Computes a dot-product of two vectors. Read more
source§

fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>

Locates the matrix header within a parent matrix. Read more
source§

fn rowscols( &self, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRef<'_, Mat>>

Extracts a rectangular submatrix. Read more
source§

fn roi(&self, roi: Rect) -> Result<BoxedRef<'_, Mat>>

Extracts a rectangular submatrix. Read more
source§

fn ranges(&self, ranges: &Vector<Range>) -> Result<BoxedRef<'_, Mat>>

Extracts a rectangular submatrix. Read more
source§

fn is_continuous(&self) -> bool

Reports whether the matrix is continuous or not. Read more
source§

fn is_submatrix(&self) -> bool

returns true if the matrix is a submatrix of another matrix
source§

fn elem_size(&self) -> Result<size_t>

Returns the matrix element size in bytes. Read more
source§

fn elem_size1(&self) -> size_t

Returns the size of each matrix element channel in bytes. Read more
source§

fn typ(&self) -> i32

Returns the type of a matrix element. Read more
source§

fn depth(&self) -> i32

Returns the depth of a matrix element. Read more
source§

fn channels(&self) -> i32

Returns the number of matrix channels. Read more
source§

fn step1(&self, i: i32) -> Result<size_t>

Returns a normalized step. Read more
source§

fn step1_def(&self) -> Result<size_t>

Returns a normalized step. Read more
source§

fn empty(&self) -> bool

Returns true if the array has no elements. Read more
source§

fn total(&self) -> size_t

Returns the total number of array elements. Read more
source§

fn total_slice(&self, start_dim: i32, end_dim: i32) -> Result<size_t>

Returns the total number of array elements. Read more
source§

fn total_slice_def(&self, start_dim: i32) -> Result<size_t>

Returns the total number of array elements. Read more
source§

fn check_vector( &self, elem_channels: i32, depth: i32, require_continuous: bool ) -> Result<i32>

Parameters Read more
source§

fn check_vector_def(&self, elem_channels: i32) -> Result<i32>

Parameters Read more
source§

fn ptr(&self, i0: i32) -> Result<*const u8>

Returns a pointer to the specified matrix row. Read more
source§

fn ptr_def(&self) -> Result<*const u8>

@overload Read more
source§

fn ptr_2d(&self, row: i32, col: i32) -> Result<*const u8>

Returns a pointer to the specified matrix row. Read more
source§

fn ptr_3d(&self, i0: i32, i1: i32, i2: i32) -> Result<*const u8>

Returns a pointer to the specified matrix row. Read more
source§

fn ptr_nd(&self, idx: &[i32]) -> Result<*const u8>

Returns a pointer to the specified matrix row. Read more
source§

fn at<T: DataType>(&self, i0: i32) -> Result<&T>

Returns a reference to the specified array element. Read more
source§

fn at_2d<T: DataType>(&self, row: i32, col: i32) -> Result<&T>

Returns a reference to the specified array element. Read more
source§

fn at_3d<T: DataType>(&self, i0: i32, i1: i32, i2: i32) -> Result<&T>

Returns a reference to the specified array element. Read more
source§

fn at_nd<T: DataType>(&self, idx: &[i32]) -> Result<&T>

Returns a reference to the specified array element. Read more
source§

fn at_pt<T: DataType>(&self, pt: Point) -> Result<&T>

Returns a reference to the specified array element. Read more
source§

fn size(&self) -> Result<Size>

source§

impl Matx_AddOpTrait for BoxedRefMut<'_, Matx_AddOp>

source§

fn as_raw_mut_Matx_AddOp( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl Matx_AddOpTraitConst for BoxedRefMut<'_, Matx_AddOp>

source§

fn as_raw_Matx_AddOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl Matx_DivOpTrait for BoxedRefMut<'_, Matx_DivOp>

source§

fn as_raw_mut_Matx_DivOp( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl Matx_DivOpTraitConst for BoxedRefMut<'_, Matx_DivOp>

source§

fn as_raw_Matx_DivOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl Matx_MatMulOpTrait for BoxedRefMut<'_, Matx_MatMulOp>

source§

fn as_raw_mut_Matx_MatMulOp( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl Matx_MatMulOpTraitConst for BoxedRefMut<'_, Matx_MatMulOp>

source§

fn as_raw_Matx_MatMulOp( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl Matx_MulOpTrait for BoxedRefMut<'_, Matx_MulOp>

source§

fn as_raw_mut_Matx_MulOp( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl Matx_MulOpTraitConst for BoxedRefMut<'_, Matx_MulOp>

source§

fn as_raw_Matx_MulOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl Matx_ScaleOpTrait for BoxedRefMut<'_, Matx_ScaleOp>

source§

fn as_raw_mut_Matx_ScaleOp( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl Matx_ScaleOpTraitConst for BoxedRefMut<'_, Matx_ScaleOp>

source§

fn as_raw_Matx_ScaleOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl Matx_SubOpTrait for BoxedRefMut<'_, Matx_SubOp>

source§

fn as_raw_mut_Matx_SubOp( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl Matx_SubOpTraitConst for BoxedRefMut<'_, Matx_SubOp>

source§

fn as_raw_Matx_SubOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl Matx_TOpTrait for BoxedRefMut<'_, Matx_TOp>

source§

fn as_raw_mut_Matx_TOp( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl Matx_TOpTraitConst for BoxedRefMut<'_, Matx_TOp>

source§

fn as_raw_Matx_TOp(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl MaxUnpoolLayerTrait for BoxedRefMut<'_, MaxUnpoolLayer>

source§

fn as_raw_mut_MaxUnpoolLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_pool_kernel(&mut self, val: Size)

source§

fn set_pool_pad(&mut self, val: Size)

source§

fn set_pool_stride(&mut self, val: Size)

source§

impl MaxUnpoolLayerTraitConst for BoxedRefMut<'_, MaxUnpoolLayer>

source§

fn as_raw_MaxUnpoolLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn pool_kernel(&self) -> Size

source§

fn pool_pad(&self) -> Size

source§

fn pool_stride(&self) -> Size

source§

impl MinProblemSolverTrait for BoxedRefMut<'_, ConjGradSolver>

source§

fn as_raw_mut_MinProblemSolver( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>

Setter for the optimized function. Read more
source§

fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>

Set terminal criteria for solver. Read more
source§

fn minimize(&mut self, x: &mut impl ToInputOutputArray) -> Result<f64>

actually runs the algorithm and performs the minimization. Read more
source§

impl MinProblemSolverTrait for BoxedRefMut<'_, DownhillSolver>

source§

fn as_raw_mut_MinProblemSolver( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>

Setter for the optimized function. Read more
source§

fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>

Set terminal criteria for solver. Read more
source§

fn minimize(&mut self, x: &mut impl ToInputOutputArray) -> Result<f64>

actually runs the algorithm and performs the minimization. Read more
source§

impl MinProblemSolverTrait for BoxedRefMut<'_, MinProblemSolver>

source§

fn as_raw_mut_MinProblemSolver( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_function(&mut self, f: &Ptr<MinProblemSolver_Function>) -> Result<()>

Setter for the optimized function. Read more
source§

fn set_term_criteria(&mut self, termcrit: TermCriteria) -> Result<()>

Set terminal criteria for solver. Read more
source§

fn minimize(&mut self, x: &mut impl ToInputOutputArray) -> Result<f64>

actually runs the algorithm and performs the minimization. Read more
source§

impl MinProblemSolverTraitConst for BoxedRefMut<'_, ConjGradSolver>

source§

fn as_raw_MinProblemSolver( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>

Getter for the optimized function. Read more
source§

fn get_term_criteria(&self) -> Result<TermCriteria>

Getter for the previously set terminal criteria for this algorithm. Read more
source§

impl MinProblemSolverTraitConst for BoxedRefMut<'_, DownhillSolver>

source§

fn as_raw_MinProblemSolver( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>

Getter for the optimized function. Read more
source§

fn get_term_criteria(&self) -> Result<TermCriteria>

Getter for the previously set terminal criteria for this algorithm. Read more
source§

impl MinProblemSolverTraitConst for BoxedRefMut<'_, MinProblemSolver>

source§

fn as_raw_MinProblemSolver( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_function(&self) -> Result<Ptr<MinProblemSolver_Function>>

Getter for the optimized function. Read more
source§

fn get_term_criteria(&self) -> Result<TermCriteria>

Getter for the previously set terminal criteria for this algorithm. Read more
source§

impl MinProblemSolver_FunctionTrait for BoxedRefMut<'_, MinProblemSolver_Function>

source§

fn as_raw_mut_MinProblemSolver_Function( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn get_gradient(&mut self, x: &f64, grad: &mut f64) -> Result<()>

source§

impl MinProblemSolver_FunctionTraitConst for BoxedRefMut<'_, MinProblemSolver_Function>

source§

fn as_raw_MinProblemSolver_Function( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_dims(&self) -> Result<i32>

source§

fn get_gradient_eps(&self) -> Result<f64>

source§

fn calc(&self, x: &f64) -> Result<f64>

source§

impl MishLayerTrait for BoxedRefMut<'_, MishLayer>

source§

fn as_raw_mut_MishLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl MishLayerTraitConst for BoxedRefMut<'_, MishLayer>

source§

fn as_raw_MishLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ModelTrait for BoxedRefMut<'_, ClassificationModel>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTrait for BoxedRefMut<'_, DetectionModel>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTrait for BoxedRefMut<'_, KeypointsModel>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTrait for BoxedRefMut<'_, Model>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTrait for BoxedRefMut<'_, SegmentationModel>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTrait for BoxedRefMut<'_, TextDetectionModel>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTrait for BoxedRefMut<'_, TextDetectionModel_DB>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTrait for BoxedRefMut<'_, TextDetectionModel_EAST>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTrait for BoxedRefMut<'_, TextRecognitionModel>

source§

fn as_raw_mut_Model( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl ModelTraitConst)

source§

fn set_1(&mut self, unnamed: Model)

source§

fn set_input_size(&mut self, size: Size) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_size_1(&mut self, width: i32, height: i32) -> Result<Model>

Set input size for frame. Read more
source§

fn set_input_mean(&mut self, mean: Scalar) -> Result<Model>

Set mean value for frame. Read more
source§

fn set_input_scale(&mut self, scale: f64) -> Result<Model>

Set scalefactor value for frame. Read more
source§

fn set_input_crop(&mut self, crop: bool) -> Result<Model>

Set flag crop for frame. Read more
source§

fn set_input_swap_rb(&mut self, swap_rb: bool) -> Result<Model>

Set flag swapRB for frame. Read more
source§

fn set_input_params( &mut self, scale: f64, size: Size, mean: Scalar, swap_rb: bool, crop: bool ) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_input_params_def(&mut self) -> Result<()>

Set preprocessing parameters for frame. Read more
source§

fn set_preferable_backend(&mut self, backend_id: Backend) -> Result<Model>

See also Read more
source§

fn set_preferable_target(&mut self, target_id: Target) -> Result<Model>

See also Read more
source§

fn get_network__1(&mut self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, ClassificationModel>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, DetectionModel>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, KeypointsModel>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, Model>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, SegmentationModel>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl ModelTraitConst for BoxedRefMut<'_, TextRecognitionModel>

source§

fn as_raw_Model(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn predict( &self, frame: &impl ToInputArray, outs: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs. Read more
source§

fn get_network_(&self) -> Result<Net>

source§

impl NetTrait for BoxedRefMut<'_, Net>

source§

fn as_raw_mut_Net( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn dump(&mut self) -> Result<String>

Dump net to String Read more
source§

fn dump_to_file(&mut self, path: &str) -> Result<()>

Dump net structure, hyperparameters, backend, target and fusion to dot file Read more
source§

fn add_layer_type( &mut self, name: &str, typ: &str, dtype: &i32, params: &mut impl LayerParamsTrait ) -> Result<i32>

Adds new layer to the net. Read more
source§

fn add_layer( &mut self, name: &str, typ: &str, params: &mut impl LayerParamsTrait ) -> Result<i32>

Adds new layer to the net. Read more
source§

fn add_layer_to_prev_type( &mut self, name: &str, typ: &str, dtype: &i32, params: &mut impl LayerParamsTrait ) -> Result<i32>

Adds new layer and connects its first input to the first output of previously added layer. Read more
source§

fn add_layer_to_prev( &mut self, name: &str, typ: &str, params: &mut impl LayerParamsTrait ) -> Result<i32>

Adds new layer and connects its first input to the first output of previously added layer. Read more
source§

fn get_layer_id(&mut self, layer: &str) -> Result<i32>

Converts string name of the layer to the integer identifier. Read more
source§

fn get_layer(&mut self, layer_id: impl DictValueTrait) -> Result<Ptr<Layer>>

Returns pointer to layer with specified id or name which the network use.
source§

fn get_layer_inputs( &mut self, layer_id: impl DictValueTrait ) -> Result<Vector<Ptr<Layer>>>

Returns pointers to input layers of specific layer.
source§

fn connect_first_second(&mut self, out_pin: &str, inp_pin: &str) -> Result<()>

Connects output of the first layer to input of the second layer. Read more
source§

fn connect( &mut self, out_layer_id: i32, out_num: i32, inp_layer_id: i32, inp_num: i32 ) -> Result<()>

Connects #@p outNum output of the first layer to #@p inNum input of the second layer. Read more
source§

fn set_inputs_names(&mut self, input_blob_names: &Vector<String>) -> Result<()>

Sets outputs names of the network input pseudo layer. Read more
source§

fn set_input_shape(&mut self, input_name: &str, shape: &MatShape) -> Result<()>

Specify shape of network input.
source§

fn forward_single(&mut self, output_name: &str) -> Result<Mat>

Runs forward pass to compute output of layer with name @p outputName. Read more
source§

fn forward_single_def(&mut self) -> Result<Mat>

Runs forward pass to compute output of layer with name @p outputName. Read more
source§

fn forward_async(&mut self, output_name: &str) -> Result<AsyncArray>

Runs forward pass to compute output of layer with name @p outputName. Read more
source§

fn forward_async_def(&mut self) -> Result<AsyncArray>

Runs forward pass to compute output of layer with name @p outputName. Read more
source§

fn forward_layer( &mut self, output_blobs: &mut impl ToOutputArray, output_name: &str ) -> Result<()>

Runs forward pass to compute output of layer with name @p outputName. Read more
source§

fn forward_layer_def( &mut self, output_blobs: &mut impl ToOutputArray ) -> Result<()>

Runs forward pass to compute output of layer with name @p outputName. Read more
source§

fn forward( &mut self, output_blobs: &mut impl ToOutputArray, out_blob_names: &Vector<String> ) -> Result<()>

Runs forward pass to compute outputs of layers listed in @p outBlobNames. Read more
source§

fn forward_and_retrieve( &mut self, output_blobs: &mut Vector<Vector<Mat>>, out_blob_names: &Vector<String> ) -> Result<()>

Runs forward pass to compute outputs of layers listed in @p outBlobNames. Read more
source§

fn quantize( &mut self, calib_data: &impl ToInputArray, inputs_dtype: i32, outputs_dtype: i32 ) -> Result<Net>

Returns a quantized Net from a floating-point Net. Read more
source§

fn set_halide_scheduler(&mut self, scheduler: &str) -> Result<()>

Compile Halide layers. Read more
source§

fn set_preferable_backend(&mut self, backend_id: i32) -> Result<()>

Ask network to use specific computation backend where it supported. Read more
source§

fn set_preferable_target(&mut self, target_id: i32) -> Result<()>

Ask network to make computations on specific target device. Read more
source§

fn set_input( &mut self, blob: &impl ToInputArray, name: &str, scalefactor: f64, mean: Scalar ) -> Result<()>

Sets the new input value for the network Read more
source§

fn set_input_def(&mut self, blob: &impl ToInputArray) -> Result<()>

Sets the new input value for the network Read more
source§

fn set_param( &mut self, layer: impl DictValueTrait, num_param: i32, blob: &impl MatTraitConst ) -> Result<()>

Sets the new value for the learned param of the layer. Read more
source§

fn get_param( &mut self, layer: impl DictValueTrait, num_param: i32 ) -> Result<Mat>

Returns parameter blob of the layer. Read more
source§

fn get_param_def(&mut self, layer: impl DictValueTrait) -> Result<Mat>

Returns parameter blob of the layer. Read more
source§

fn enable_fusion(&mut self, fusion: bool) -> Result<()>

Enables or disables layer fusion in the network. Read more
source§

fn get_perf_profile(&mut self, timings: &mut Vector<f64>) -> Result<i64>

Returns overall time for inference and timings (in ticks) for layers. Read more
source§

impl NetTraitConst for BoxedRefMut<'_, Net>

source§

fn as_raw_Net(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn empty(&self) -> Result<bool>

Returns true if there are no layers in the network.
source§

fn get_layer_names(&self) -> Result<Vector<String>>

source§

fn get_input_details( &self, scales: &mut Vector<f32>, zeropoints: &mut Vector<i32> ) -> Result<()>

Returns input scale and zeropoint for a quantized Net. Read more
source§

fn get_output_details( &self, scales: &mut Vector<f32>, zeropoints: &mut Vector<i32> ) -> Result<()>

Returns output scale and zeropoint for a quantized Net. Read more
source§

fn get_unconnected_out_layers(&self) -> Result<Vector<i32>>

Returns indexes of layers with unconnected outputs.
source§

fn get_unconnected_out_layers_names(&self) -> Result<Vector<String>>

Returns names of layers with unconnected outputs.
source§

fn get_layers_shapes( &self, net_input_shapes: &Vector<MatShape>, layers_ids: &mut Vector<i32>, in_layers_shapes: &mut Vector<Vector<MatShape>>, out_layers_shapes: &mut Vector<Vector<MatShape>> ) -> Result<()>

Returns input and output shapes for all layers in loaded model; preliminary inferencing isn’t necessary. Read more
source§

fn get_layers_shapes_1( &self, net_input_shape: &MatShape, layers_ids: &mut Vector<i32>, in_layers_shapes: &mut Vector<Vector<MatShape>>, out_layers_shapes: &mut Vector<Vector<MatShape>> ) -> Result<()>

Returns input and output shapes for all layers in loaded model; preliminary inferencing isn’t necessary. Read more
source§

fn get_layer_shapes( &self, net_input_shape: &MatShape, layer_id: i32, in_layer_shapes: &mut Vector<MatShape>, out_layer_shapes: &mut Vector<MatShape> ) -> Result<()>

Returns input and output shapes for layer with specified id in loaded model; preliminary inferencing isn’t necessary. Read more
source§

fn get_layer_shapes_1( &self, net_input_shapes: &Vector<MatShape>, layer_id: i32, in_layer_shapes: &mut Vector<MatShape>, out_layer_shapes: &mut Vector<MatShape> ) -> Result<()>

Returns input and output shapes for layer with specified id in loaded model; preliminary inferencing isn’t necessary. Read more
source§

fn get_flops(&self, net_input_shapes: &Vector<MatShape>) -> Result<i64>

Computes FLOP for whole loaded model with specified input shapes. Read more
source§

fn get_flops_1(&self, net_input_shape: &MatShape) -> Result<i64>

Computes FLOP for whole loaded model with specified input shapes. Read more
source§

fn get_flops_2( &self, layer_id: i32, net_input_shapes: &Vector<MatShape> ) -> Result<i64>

Computes FLOP for whole loaded model with specified input shapes. Read more
source§

fn get_flops_3(&self, layer_id: i32, net_input_shape: &MatShape) -> Result<i64>

Computes FLOP for whole loaded model with specified input shapes. Read more
source§

fn get_layer_types(&self, layers_types: &mut Vector<String>) -> Result<()>

Returns list of types for layer used in model. Read more
source§

fn get_layers_count(&self, layer_type: &str) -> Result<i32>

Returns count of layers of specified type. Read more
source§

fn get_memory_consumption( &self, net_input_shapes: &Vector<MatShape>, weights: &mut size_t, blobs: &mut size_t ) -> Result<()>

Computes bytes number which are required to store all weights and intermediate blobs for model. Read more
source§

fn get_memory_consumption_1( &self, net_input_shape: &MatShape, weights: &mut size_t, blobs: &mut size_t ) -> Result<()>

Computes bytes number which are required to store all weights and intermediate blobs for model. Read more
source§

fn get_memory_consumption_for_layer( &self, layer_id: i32, net_input_shapes: &Vector<MatShape>, weights: &mut size_t, blobs: &mut size_t ) -> Result<()>

Computes bytes number which are required to store all weights and intermediate blobs for model. Read more
source§

fn get_memory_consumption_2( &self, layer_id: i32, net_input_shape: &MatShape, weights: &mut size_t, blobs: &mut size_t ) -> Result<()>

Computes bytes number which are required to store all weights and intermediate blobs for model. Read more
source§

fn get_memory_consumption_for_layers( &self, net_input_shapes: &Vector<MatShape>, layer_ids: &mut Vector<i32>, weights: &mut Vector<size_t>, blobs: &mut Vector<size_t> ) -> Result<()>

Computes bytes number which are required to store all weights and intermediate blobs for each layer. Read more
source§

fn get_memory_consumption_3( &self, net_input_shape: &MatShape, layer_ids: &mut Vector<i32>, weights: &mut Vector<size_t>, blobs: &mut Vector<size_t> ) -> Result<()>

Computes bytes number which are required to store all weights and intermediate blobs for each layer. Read more
source§

impl NodeDataTrait for BoxedRefMut<'_, NodeData>

source§

fn as_raw_mut_NodeData( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_m_fun_name(&mut self, val: &str)

source§

fn set_m_instr_type(&mut self, val: TYPE)

source§

fn set_m_impl_type(&mut self, val: IMPL)

source§

fn set_m_line_num(&mut self, val: i32)

source§

fn m_ret_address(&mut self) -> *mut c_void

source§

unsafe fn set_m_ret_address(&mut self, val: *const c_void)

source§

fn set_m_always_expand(&mut self, val: bool)

source§

fn set_m_fun_error(&mut self, val: bool)

source§

fn set_m_counter(&mut self, val: i32)

source§

fn set_m_ticks_total(&mut self, val: u64)

source§

fn set_m_threads(&mut self, val: i32)

source§

fn set(&mut self, unnamed: &impl NodeDataTraitConst) -> Result<()>

source§

impl NodeDataTraitConst for BoxedRefMut<'_, NodeData>

source§

fn as_raw_NodeData(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn m_fun_name(&self) -> String

source§

fn m_instr_type(&self) -> TYPE

source§

fn m_impl_type(&self) -> IMPL

source§

fn m_file_name(&self) -> String

source§

fn m_line_num(&self) -> i32

source§

fn m_always_expand(&self) -> bool

source§

fn m_fun_error(&self) -> bool

source§

fn m_counter(&self) -> i32

source§

fn m_ticks_total(&self) -> u64

source§

fn m_threads(&self) -> i32

source§

fn get_total_ms(&self) -> Result<f64>

source§

fn get_mean_ms(&self) -> Result<f64>

source§

impl NormalizeBBoxLayerTrait for BoxedRefMut<'_, NormalizeBBoxLayer>

source§

fn as_raw_mut_NormalizeBBoxLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_pnorm(&mut self, val: f32)

source§

fn set_epsilon(&mut self, val: f32)

source§

fn set_across_spatial(&mut self, val: bool)

source§

impl NormalizeBBoxLayerTraitConst for BoxedRefMut<'_, NormalizeBBoxLayer>

source§

fn as_raw_NormalizeBBoxLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn pnorm(&self) -> f32

source§

fn epsilon(&self) -> f32

source§

fn across_spatial(&self) -> bool

source§

impl OpenCLExecutionContextTrait for BoxedRefMut<'_, OpenCLExecutionContext>

source§

fn as_raw_mut_OpenCLExecutionContext( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, unnamed: &impl OpenCLExecutionContextTraitConst)

source§

fn set_1(&mut self, unnamed: OpenCLExecutionContext)

source§

fn set_use_opencl(&mut self, flag: bool) -> Result<()>

source§

fn release(&mut self) -> Result<()>

source§

impl OpenCLExecutionContextTraitConst for BoxedRefMut<'_, OpenCLExecutionContext>

source§

fn as_raw_OpenCLExecutionContext( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_context(&self) -> Result<Context>

Get associated ocl::Context
source§

fn get_device(&self) -> Result<Device>

Get the single default associated ocl::Device
source§

fn get_queue(&self) -> Result<Queue>

Get the single ocl::Queue that is associated with the ocl::Context and the single default ocl::Device
source§

fn use_opencl(&self) -> Result<bool>

source§

fn bind(&self) -> Result<()>

Bind this OpenCL execution context to current thread. Read more
source§

fn clone_with_new_queue( &self, q: &impl QueueTraitConst ) -> Result<OpenCLExecutionContext>

Creates new execution context with same OpenCV context and device Read more
source§

fn clone_with_new_queue_1(&self) -> Result<OpenCLExecutionContext>

Creates new execution context with same OpenCV context and device Read more
source§

fn empty(&self) -> Result<bool>

source§

impl PCATrait for BoxedRefMut<'_, PCA>

source§

fn as_raw_mut_PCA( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_eigenvectors(&mut self, val: Mat)

eigenvectors of the covariation matrix
source§

fn set_eigenvalues(&mut self, val: Mat)

eigenvalues of the covariation matrix
source§

fn set_mean(&mut self, val: Mat)

mean value subtracted before the projection and added after the back projection
source§

fn apply( &mut self, data: &impl ToInputArray, mean: &impl ToInputArray, flags: i32, max_components: i32 ) -> Result<PCA>

performs %PCA Read more
source§

fn apply_def( &mut self, data: &impl ToInputArray, mean: &impl ToInputArray, flags: i32 ) -> Result<PCA>

performs %PCA Read more
source§

fn apply_1( &mut self, data: &impl ToInputArray, mean: &impl ToInputArray, flags: i32, retained_variance: f64 ) -> Result<PCA>

performs %PCA Read more
source§

fn read(&mut self, fn_: &impl FileNodeTraitConst) -> Result<()>

load PCA objects Read more
source§

impl PCATraitConst for BoxedRefMut<'_, PCA>

source§

fn as_raw_PCA(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn eigenvectors(&self) -> Mat

eigenvectors of the covariation matrix
source§

fn eigenvalues(&self) -> Mat

eigenvalues of the covariation matrix
source§

fn mean(&self) -> Mat

mean value subtracted before the projection and added after the back projection
source§

fn project(&self, vec: &impl ToInputArray) -> Result<Mat>

Projects vector(s) to the principal component subspace. Read more
source§

fn project_to( &self, vec: &impl ToInputArray, result: &mut impl ToOutputArray ) -> Result<()>

Projects vector(s) to the principal component subspace. Read more
source§

fn back_project(&self, vec: &impl ToInputArray) -> Result<Mat>

Reconstructs vectors from their PC projections. Read more
source§

fn back_project_to( &self, vec: &impl ToInputArray, result: &mut impl ToOutputArray ) -> Result<()>

Reconstructs vectors from their PC projections. Read more
source§

fn write(&self, fs: &mut impl FileStorageTrait) -> Result<()>

write PCA objects Read more
source§

impl PaddingLayerTrait for BoxedRefMut<'_, PaddingLayer>

source§

fn as_raw_mut_PaddingLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl PaddingLayerTraitConst for BoxedRefMut<'_, PaddingLayer>

source§

fn as_raw_PaddingLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ParallelLoopBodyTrait for BoxedRefMut<'_, ParallelLoopBody>

source§

fn as_raw_mut_ParallelLoopBody( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ParallelLoopBodyTraitConst for BoxedRefMut<'_, ParallelLoopBody>

source§

fn as_raw_ParallelLoopBody( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn apply(&self, range: &impl RangeTraitConst) -> Result<()>

source§

impl PermuteLayerTrait for BoxedRefMut<'_, PermuteLayer>

source§

fn as_raw_mut_PermuteLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl PermuteLayerTraitConst for BoxedRefMut<'_, PermuteLayer>

source§

fn as_raw_PermuteLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl PlatformInfoTrait for BoxedRefMut<'_, PlatformInfo>

source§

fn as_raw_mut_PlatformInfo( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, i: &impl PlatformInfoTraitConst) -> Result<()>

source§

fn set_1(&mut self, i: PlatformInfo)

source§

impl PlatformInfoTraitConst for BoxedRefMut<'_, PlatformInfo>

source§

fn as_raw_PlatformInfo(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn name(&self) -> Result<String>

source§

fn vendor(&self) -> Result<String>

source§

fn version(&self) -> Result<String>

See CL_PLATFORM_VERSION
source§

fn version_major(&self) -> Result<i32>

source§

fn version_minor(&self) -> Result<i32>

source§

fn device_number(&self) -> Result<i32>

source§

fn get_device(&self, device: &mut impl DeviceTrait, d: i32) -> Result<()>

source§

fn empty(&self) -> Result<bool>

source§

impl PlatformTrait for BoxedRefMut<'_, Platform>

source§

fn as_raw_mut_Platform( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, p: &impl PlatformTraitConst) -> Result<()>

source§

fn set_1(&mut self, p: Platform)

source§

impl PlatformTraitConst for BoxedRefMut<'_, Platform>

source§

fn as_raw_Platform(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn ptr(&self) -> Result<*mut c_void>

source§

fn empty(&self) -> Result<bool>

source§

impl PoolingLayerInt8Trait for BoxedRefMut<'_, PoolingLayerInt8>

source§

fn as_raw_mut_PoolingLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_input_zp(&mut self, val: i32)

source§

fn set_output_zp(&mut self, val: i32)

source§

impl PoolingLayerInt8TraitConst for BoxedRefMut<'_, PoolingLayerInt8>

source§

fn as_raw_PoolingLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn input_zp(&self) -> i32

source§

fn output_zp(&self) -> i32

source§

impl PoolingLayerTrait for BoxedRefMut<'_, PoolingLayer>

source§

fn as_raw_mut_PoolingLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_type(&mut self, val: i32)

source§

fn set_kernel_size(&mut self, val: Vector<size_t>)

source§

fn set_strides(&mut self, val: Vector<size_t>)

source§

fn set_pads_begin(&mut self, val: Vector<size_t>)

source§

fn set_pads_end(&mut self, val: Vector<size_t>)

source§

fn set_global_pooling(&mut self, val: bool)

Flag is true if at least one of the axes is global pooled.
source§

fn set_is_global_pooling(&mut self, val: Vector<bool>)

source§

fn set_compute_max_idx(&mut self, val: bool)

source§

fn set_pad_mode(&mut self, val: &str)

source§

fn set_ceil_mode(&mut self, val: bool)

source§

fn set_ave_pool_padded_area(&mut self, val: bool)

source§

fn set_pooled_size(&mut self, val: Size)

source§

fn set_spatial_scale(&mut self, val: f32)

source§

fn set_ps_roi_out_channels(&mut self, val: i32)

source§

impl PoolingLayerTrait for BoxedRefMut<'_, PoolingLayerInt8>

source§

fn as_raw_mut_PoolingLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_type(&mut self, val: i32)

source§

fn set_kernel_size(&mut self, val: Vector<size_t>)

source§

fn set_strides(&mut self, val: Vector<size_t>)

source§

fn set_pads_begin(&mut self, val: Vector<size_t>)

source§

fn set_pads_end(&mut self, val: Vector<size_t>)

source§

fn set_global_pooling(&mut self, val: bool)

Flag is true if at least one of the axes is global pooled.
source§

fn set_is_global_pooling(&mut self, val: Vector<bool>)

source§

fn set_compute_max_idx(&mut self, val: bool)

source§

fn set_pad_mode(&mut self, val: &str)

source§

fn set_ceil_mode(&mut self, val: bool)

source§

fn set_ave_pool_padded_area(&mut self, val: bool)

source§

fn set_pooled_size(&mut self, val: Size)

source§

fn set_spatial_scale(&mut self, val: f32)

source§

fn set_ps_roi_out_channels(&mut self, val: i32)

source§

impl PoolingLayerTraitConst for BoxedRefMut<'_, PoolingLayer>

source§

fn as_raw_PoolingLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn typ(&self) -> i32

source§

fn kernel_size(&self) -> Vector<size_t>

source§

fn strides(&self) -> Vector<size_t>

source§

fn pads_begin(&self) -> Vector<size_t>

source§

fn pads_end(&self) -> Vector<size_t>

source§

fn global_pooling(&self) -> bool

Flag is true if at least one of the axes is global pooled.
source§

fn is_global_pooling(&self) -> Vector<bool>

source§

fn compute_max_idx(&self) -> bool

source§

fn pad_mode(&self) -> String

source§

fn ceil_mode(&self) -> bool

source§

fn ave_pool_padded_area(&self) -> bool

source§

fn pooled_size(&self) -> Size

source§

fn spatial_scale(&self) -> f32

source§

fn ps_roi_out_channels(&self) -> i32

source§

impl PoolingLayerTraitConst for BoxedRefMut<'_, PoolingLayerInt8>

source§

fn as_raw_PoolingLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn typ(&self) -> i32

source§

fn kernel_size(&self) -> Vector<size_t>

source§

fn strides(&self) -> Vector<size_t>

source§

fn pads_begin(&self) -> Vector<size_t>

source§

fn pads_end(&self) -> Vector<size_t>

source§

fn global_pooling(&self) -> bool

Flag is true if at least one of the axes is global pooled.
source§

fn is_global_pooling(&self) -> Vector<bool>

source§

fn compute_max_idx(&self) -> bool

source§

fn pad_mode(&self) -> String

source§

fn ceil_mode(&self) -> bool

source§

fn ave_pool_padded_area(&self) -> bool

source§

fn pooled_size(&self) -> Size

source§

fn spatial_scale(&self) -> f32

source§

fn ps_roi_out_channels(&self) -> i32

source§

impl PowerLayerTrait for BoxedRefMut<'_, PowerLayer>

source§

fn as_raw_mut_PowerLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_power(&mut self, val: f32)

source§

fn set_scale(&mut self, val: f32)

source§

fn set_shift(&mut self, val: f32)

source§

impl PowerLayerTraitConst for BoxedRefMut<'_, PowerLayer>

source§

fn as_raw_PowerLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn power(&self) -> f32

source§

fn scale(&self) -> f32

source§

fn shift(&self) -> f32

source§

impl PriorBoxLayerTrait for BoxedRefMut<'_, PriorBoxLayer>

source§

fn as_raw_mut_PriorBoxLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl PriorBoxLayerTraitConst for BoxedRefMut<'_, PriorBoxLayer>

source§

fn as_raw_PriorBoxLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ProgramSourceTrait for BoxedRefMut<'_, ProgramSource>

source§

fn as_raw_mut_ProgramSource( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, prog: &impl ProgramSourceTraitConst) -> Result<()>

source§

fn set_1(&mut self, prog: ProgramSource)

source§

impl ProgramSourceTraitConst for BoxedRefMut<'_, ProgramSource>

source§

fn as_raw_ProgramSource( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn source(&self) -> Result<String>

source§

fn hash(&self) -> Result<ProgramSource_hash_t>

source§

fn empty(&self) -> Result<bool>

source§

impl ProgramTrait for BoxedRefMut<'_, Program>

source§

fn as_raw_mut_Program( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, prog: &impl ProgramTraitConst) -> Result<()>

source§

fn set_1(&mut self, prog: Program)

source§

fn create( &mut self, src: &impl ProgramSourceTraitConst, buildflags: &str, errmsg: &mut String ) -> Result<bool>

source§

fn read(&mut self, buf: &str, buildflags: &str) -> Result<bool>

source§

impl ProgramTraitConst for BoxedRefMut<'_, Program>

source§

fn as_raw_Program(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn ptr(&self) -> Result<*mut c_void>

source§

fn get_binary(&self, binary: &mut Vector<c_char>) -> Result<()>

Query device-specific program binary. Read more
source§

fn empty(&self) -> Result<bool>

source§

fn write(&self, buf: &mut String) -> Result<bool>

source§

fn source(&self) -> Result<ProgramSource>

source§

fn get_prefix(&self) -> Result<String>

source§

impl ProposalLayerTrait for BoxedRefMut<'_, ProposalLayer>

source§

fn as_raw_mut_ProposalLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ProposalLayerTraitConst for BoxedRefMut<'_, ProposalLayer>

source§

fn as_raw_ProposalLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl QuantizeLayerTrait for BoxedRefMut<'_, QuantizeLayer>

source§

fn as_raw_mut_QuantizeLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_scale(&mut self, val: f32)

source§

fn set_zeropoint(&mut self, val: i32)

source§

impl QuantizeLayerTraitConst for BoxedRefMut<'_, QuantizeLayer>

source§

fn as_raw_QuantizeLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn scale(&self) -> f32

source§

fn zeropoint(&self) -> i32

source§

impl QueueTrait for BoxedRefMut<'_, Queue>

source§

fn as_raw_mut_Queue( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, q: &impl QueueTraitConst) -> Result<()>

source§

fn set_1(&mut self, q: Queue)

source§

fn create( &mut self, c: &impl ContextTraitConst, d: &impl DeviceTraitConst ) -> Result<bool>

C++ default parameters Read more
source§

fn create_def(&mut self) -> Result<bool>

source§

fn finish(&mut self) -> Result<()>

source§

impl QueueTraitConst for BoxedRefMut<'_, Queue>

source§

fn as_raw_Queue(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn ptr(&self) -> Result<*mut c_void>

source§

fn get_profiling_queue(&self) -> Result<Queue>

Returns OpenCL command queue with enable profiling mode support
source§

fn empty(&self) -> Result<bool>

source§

impl RNGTrait for BoxedRefMut<'_, RNG>

source§

fn as_raw_mut_RNG( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_state(&mut self, val: u64)

source§

fn next(&mut self) -> Result<u32>

The method updates the state using the MWC algorithm and returns the next 32-bit random number.
source§

fn to_u8(&mut self) -> Result<u8>

Each of the methods updates the state using the MWC algorithm and returns the next random number of the specified type. In case of integer types, the returned number is from the available value range for the specified type. In case of floating-point types, the returned value is from [0,1) range.
source§

fn to_i8(&mut self) -> Result<i8>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§

fn to_u16(&mut self) -> Result<u16>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§

fn to_i16(&mut self) -> Result<i16>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§

fn to_u32(&mut self) -> Result<u32>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§

fn to_i32(&mut self) -> Result<i32>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§

fn to_f32(&mut self) -> Result<f32>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§

fn to_f64(&mut self) -> Result<f64>

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
source§

fn apply(&mut self) -> Result<u32>

returns a random integer sampled uniformly from [0, N). Read more
source§

fn apply_range(&mut self, n: u32) -> Result<u32>

returns a random integer sampled uniformly from [0, N). Read more
source§

fn uniform(&mut self, a: i32, b: i32) -> Result<i32>

returns uniformly distributed integer random number from [a,b) range Read more
source§

fn uniform_f32(&mut self, a: f32, b: f32) -> Result<f32>

returns uniformly distributed integer random number from [a,b) range Read more
source§

fn uniform_f64(&mut self, a: f64, b: f64) -> Result<f64>

returns uniformly distributed integer random number from [a,b) range Read more
source§

fn fill( &mut self, mat: &mut impl ToInputOutputArray, dist_type: i32, a: &impl ToInputArray, b: &impl ToInputArray, saturate_range: bool ) -> Result<()>

Fills arrays with random numbers. Read more
source§

fn fill_def( &mut self, mat: &mut impl ToInputOutputArray, dist_type: i32, a: &impl ToInputArray, b: &impl ToInputArray ) -> Result<()>

Fills arrays with random numbers. Read more
source§

fn gaussian(&mut self, sigma: f64) -> Result<f64>

Returns the next random number sampled from the Gaussian distribution Read more
source§

impl RNGTraitConst for BoxedRefMut<'_, RNG>

source§

fn as_raw_RNG(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn state(&self) -> u64

source§

fn equals(&self, other: &impl RNGTraitConst) -> Result<bool>

source§

impl RNG_MT19937Trait for BoxedRefMut<'_, RNG_MT19937>

source§

fn as_raw_mut_RNG_MT19937( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn seed(&mut self, s: u32) -> Result<()>

source§

fn next(&mut self) -> Result<u32>

source§

fn to_i32(&mut self) -> Result<i32>

source§

fn to_u32(&mut self) -> Result<u32>

source§

fn to_f32(&mut self) -> Result<f32>

source§

fn to_f64(&mut self) -> Result<f64>

source§

fn to_u32_with_max(&mut self, n: u32) -> Result<u32>

source§

fn uniform(&mut self, a: i32, b: i32) -> Result<i32>

returns uniformly distributed integer random number from [a,b) range
source§

fn uniform_1(&mut self, a: f32, b: f32) -> Result<f32>

returns uniformly distributed floating-point random number from [a,b) range
source§

fn uniform_2(&mut self, a: f64, b: f64) -> Result<f64>

returns uniformly distributed double-precision floating-point random number from [a,b) range
source§

impl RNG_MT19937TraitConst for BoxedRefMut<'_, RNG_MT19937>

source§

fn as_raw_RNG_MT19937(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl RNNLayerTrait for BoxedRefMut<'_, RNNLayer>

source§

fn as_raw_mut_RNNLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_weights( &mut self, wxh: &impl MatTraitConst, bh: &impl MatTraitConst, whh: &impl MatTraitConst, who: &impl MatTraitConst, bo: &impl MatTraitConst ) -> Result<()>

Setups learned weights. Read more
source§

fn set_produce_hidden_output(&mut self, produce: bool) -> Result<()>

If this flag is set to true then layer will produce @f$ h_t @f$ as second output. @details Shape of the second output is the same as first output. Read more
source§

fn set_produce_hidden_output_def(&mut self) -> Result<()>

If this flag is set to true then layer will produce @f$ h_t @f$ as second output. @details Shape of the second output is the same as first output. Read more
source§

impl RNNLayerTraitConst for BoxedRefMut<'_, RNNLayer>

source§

fn as_raw_RNNLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl RangeTrait for BoxedRefMut<'_, Range>

source§

fn as_raw_mut_Range( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_start(&mut self, val: i32)

source§

fn set_end(&mut self, val: i32)

source§

impl RangeTrait for BoxedRefMut<'_, _Range>

source§

fn as_raw_mut_Range( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_start(&mut self, val: i32)

source§

fn set_end(&mut self, val: i32)

source§

impl RangeTraitConst for BoxedRefMut<'_, Range>

source§

fn as_raw_Range(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn start(&self) -> i32

source§

fn end(&self) -> i32

source§

fn size(&self) -> Result<i32>

source§

fn empty(&self) -> Result<bool>

source§

impl RangeTraitConst for BoxedRefMut<'_, _Range>

source§

fn as_raw_Range(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn start(&self) -> i32

source§

fn end(&self) -> i32

source§

fn size(&self) -> Result<i32>

source§

fn empty(&self) -> Result<bool>

source§

impl ReLU6LayerTrait for BoxedRefMut<'_, ReLU6Layer>

source§

fn as_raw_mut_ReLU6Layer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_min_value(&mut self, val: f32)

source§

fn set_max_value(&mut self, val: f32)

source§

impl ReLU6LayerTraitConst for BoxedRefMut<'_, ReLU6Layer>

source§

fn as_raw_ReLU6Layer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn min_value(&self) -> f32

source§

fn max_value(&self) -> f32

source§

impl ReLULayerTrait for BoxedRefMut<'_, ReLULayer>

source§

fn as_raw_mut_ReLULayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_negative_slope(&mut self, val: f32)

source§

impl ReLULayerTraitConst for BoxedRefMut<'_, ReLULayer>

source§

fn as_raw_ReLULayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn negative_slope(&self) -> f32

source§

impl RegionLayerTrait for BoxedRefMut<'_, RegionLayer>

source§

fn as_raw_mut_RegionLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_nms_threshold(&mut self, val: f32)

source§

impl RegionLayerTraitConst for BoxedRefMut<'_, RegionLayer>

source§

fn as_raw_RegionLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn nms_threshold(&self) -> f32

source§

impl ReorgLayerTrait for BoxedRefMut<'_, ReorgLayer>

source§

fn as_raw_mut_ReorgLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ReorgLayerTraitConst for BoxedRefMut<'_, ReorgLayer>

source§

fn as_raw_ReorgLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl RequantizeLayerTrait for BoxedRefMut<'_, RequantizeLayer>

source§

fn as_raw_mut_RequantizeLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_scale(&mut self, val: f32)

source§

fn set_shift(&mut self, val: f32)

source§

impl RequantizeLayerTraitConst for BoxedRefMut<'_, RequantizeLayer>

source§

fn as_raw_RequantizeLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn scale(&self) -> f32

source§

fn shift(&self) -> f32

source§

impl ReshapeLayerTrait for BoxedRefMut<'_, ReshapeLayer>

source§

fn as_raw_mut_ReshapeLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_new_shape_desc(&mut self, val: MatShape)

source§

fn set_new_shape_range(&mut self, val: Range)

source§

impl ReshapeLayerTraitConst for BoxedRefMut<'_, ReshapeLayer>

source§

fn as_raw_ReshapeLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn new_shape_desc(&self) -> Vector<i32>

source§

fn new_shape_range(&self) -> Range

source§

impl ResizeLayerTrait for BoxedRefMut<'_, ResizeLayer>

source§

fn as_raw_mut_ResizeLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ResizeLayerTraitConst for BoxedRefMut<'_, ResizeLayer>

source§

fn as_raw_ResizeLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl SVDTrait for BoxedRefMut<'_, SVD>

source§

fn as_raw_mut_SVD( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_u(&mut self, val: Mat)

source§

fn set_w(&mut self, val: Mat)

source§

fn set_vt(&mut self, val: Mat)

source§

fn apply(&mut self, src: &impl ToInputArray, flags: i32) -> Result<SVD>

the operator that performs SVD. The previously allocated u, w and vt are released. Read more
source§

fn apply_def(&mut self, src: &impl ToInputArray) -> Result<SVD>

the operator that performs SVD. The previously allocated u, w and vt are released. Read more
source§

impl SVDTraitConst for BoxedRefMut<'_, SVD>

source§

fn as_raw_SVD(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn u(&self) -> Mat

source§

fn w(&self) -> Mat

source§

fn vt(&self) -> Mat

source§

fn back_subst( &self, rhs: &impl ToInputArray, dst: &mut impl ToOutputArray ) -> Result<()>

performs a singular value back substitution. Read more
source§

impl ScaleLayerInt8Trait for BoxedRefMut<'_, ScaleLayerInt8>

source§

fn as_raw_mut_ScaleLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_output_sc(&mut self, val: f32)

source§

fn set_output_zp(&mut self, val: i32)

source§

impl ScaleLayerInt8TraitConst for BoxedRefMut<'_, ScaleLayerInt8>

source§

fn as_raw_ScaleLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn output_sc(&self) -> f32

source§

fn output_zp(&self) -> i32

source§

impl ScaleLayerTrait for BoxedRefMut<'_, ScaleLayer>

source§

fn as_raw_mut_ScaleLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_has_bias(&mut self, val: bool)

source§

fn set_axis(&mut self, val: i32)

source§

impl ScaleLayerTrait for BoxedRefMut<'_, ScaleLayerInt8>

source§

fn as_raw_mut_ScaleLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_has_bias(&mut self, val: bool)

source§

fn set_axis(&mut self, val: i32)

source§

impl ScaleLayerTraitConst for BoxedRefMut<'_, ScaleLayer>

source§

fn as_raw_ScaleLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn has_bias(&self) -> bool

source§

fn axis(&self) -> i32

source§

impl ScaleLayerTraitConst for BoxedRefMut<'_, ScaleLayerInt8>

source§

fn as_raw_ScaleLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn has_bias(&self) -> bool

source§

fn axis(&self) -> i32

source§

impl SegmentationModelTrait for BoxedRefMut<'_, SegmentationModel>

source§

fn as_raw_mut_SegmentationModel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn segment( &mut self, frame: &impl ToInputArray, mask: &mut impl ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net Read more
source§

impl SegmentationModelTraitConst for BoxedRefMut<'_, SegmentationModel>

source§

fn as_raw_SegmentationModel( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ShiftLayerInt8Trait for BoxedRefMut<'_, ShiftLayerInt8>

source§

fn as_raw_mut_ShiftLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ShiftLayerInt8TraitConst for BoxedRefMut<'_, ShiftLayerInt8>

source§

fn as_raw_ShiftLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ShiftLayerTrait for BoxedRefMut<'_, ShiftLayer>

source§

fn as_raw_mut_ShiftLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl ShiftLayerTraitConst for BoxedRefMut<'_, ShiftLayer>

source§

fn as_raw_ShiftLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl ShuffleChannelLayerTrait for BoxedRefMut<'_, ShuffleChannelLayer>

source§

fn as_raw_mut_ShuffleChannelLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_group(&mut self, val: i32)

source§

impl ShuffleChannelLayerTraitConst for BoxedRefMut<'_, ShuffleChannelLayer>

source§

fn as_raw_ShuffleChannelLayer( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn group(&self) -> i32

source§

impl SigmoidLayerTrait for BoxedRefMut<'_, SigmoidLayer>

source§

fn as_raw_mut_SigmoidLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl SigmoidLayerTraitConst for BoxedRefMut<'_, SigmoidLayer>

source§

fn as_raw_SigmoidLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl SliceLayerTrait for BoxedRefMut<'_, SliceLayer>

source§

fn as_raw_mut_SliceLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_slice_ranges(&mut self, val: Vector<Vector<Range>>)

Vector of slice ranges. Read more
source§

fn set_slice_steps(&mut self, val: Vector<Vector<i32>>)

source§

fn set_axis(&mut self, val: i32)

source§

fn set_num_split(&mut self, val: i32)

source§

impl SliceLayerTraitConst for BoxedRefMut<'_, SliceLayer>

source§

fn as_raw_SliceLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn slice_ranges(&self) -> Vector<Vector<Range>>

Vector of slice ranges. Read more
source§

fn slice_steps(&self) -> Vector<Vector<i32>>

source§

fn axis(&self) -> i32

source§

fn num_split(&self) -> i32

source§

impl SoftmaxLayerInt8Trait for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

fn as_raw_mut_SoftmaxLayerInt8( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_output_sc(&mut self, val: f32)

source§

fn set_output_zp(&mut self, val: i32)

source§

impl SoftmaxLayerInt8TraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

fn as_raw_SoftmaxLayerInt8( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn output_sc(&self) -> f32

source§

fn output_zp(&self) -> i32

source§

impl SoftmaxLayerTrait for BoxedRefMut<'_, SoftmaxLayer>

source§

fn as_raw_mut_SoftmaxLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_log_soft_max(&mut self, val: bool)

source§

impl SoftmaxLayerTrait for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

fn as_raw_mut_SoftmaxLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_log_soft_max(&mut self, val: bool)

source§

impl SoftmaxLayerTraitConst for BoxedRefMut<'_, SoftmaxLayer>

source§

fn as_raw_SoftmaxLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn log_soft_max(&self) -> bool

source§

impl SoftmaxLayerTraitConst for BoxedRefMut<'_, SoftmaxLayerInt8>

source§

fn as_raw_SoftmaxLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn log_soft_max(&self) -> bool

source§

impl SparseMatConstIteratorTrait for BoxedRefMut<'_, SparseMatConstIterator>

source§

fn as_raw_mut_SparseMatConstIterator( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_hashidx(&mut self, val: size_t)

source§

fn ptr_mut(&mut self) -> *mut u8

source§

unsafe fn set_ptr(&mut self, val: *const u8)

source§

fn set(&mut self, it: &impl SparseMatConstIteratorTraitConst) -> Result<()>

the assignment operator
source§

fn incr(&mut self) -> Result<SparseMatConstIterator>

moves iterator to the next element
source§

fn seek_end(&mut self) -> Result<()>

moves iterator to the element after the last element
source§

impl SparseMatConstIteratorTrait for BoxedRefMut<'_, SparseMatIterator>

source§

fn as_raw_mut_SparseMatConstIterator( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_hashidx(&mut self, val: size_t)

source§

fn ptr_mut(&mut self) -> *mut u8

source§

unsafe fn set_ptr(&mut self, val: *const u8)

source§

fn set(&mut self, it: &impl SparseMatConstIteratorTraitConst) -> Result<()>

the assignment operator
source§

fn incr(&mut self) -> Result<SparseMatConstIterator>

moves iterator to the next element
source§

fn seek_end(&mut self) -> Result<()>

moves iterator to the element after the last element
source§

impl SparseMatConstIteratorTraitConst for BoxedRefMut<'_, SparseMatConstIterator>

source§

fn as_raw_SparseMatConstIterator( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn m(&self) -> SparseMat

source§

fn hashidx(&self) -> size_t

source§

fn ptr(&self) -> *const u8

source§

fn node(&self) -> Result<SparseMat_Node>

returns the current node of the sparse matrix. it.node->idx is the current element index
source§

impl SparseMatConstIteratorTraitConst for BoxedRefMut<'_, SparseMatIterator>

source§

fn as_raw_SparseMatConstIterator( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn m(&self) -> SparseMat

source§

fn hashidx(&self) -> size_t

source§

fn ptr(&self) -> *const u8

source§

fn node(&self) -> Result<SparseMat_Node>

returns the current node of the sparse matrix. it.node->idx is the current element index
source§

impl SparseMatIteratorTrait for BoxedRefMut<'_, SparseMatIterator>

source§

fn as_raw_mut_SparseMatIterator( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set(&mut self, it: &impl SparseMatIteratorTraitConst) -> Result<()>

the assignment operator
source§

fn incr(&mut self) -> Result<SparseMatIterator>

moves iterator to the next element
source§

impl SparseMatIteratorTraitConst for BoxedRefMut<'_, SparseMatIterator>

source§

fn as_raw_SparseMatIterator( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn node(&self) -> Result<SparseMat_Node>

returns pointer to the current sparse matrix node. it.node->idx is the index of the current element (do not modify it!)
source§

impl SparseMatTrait for BoxedRefMut<'_, SparseMat>

source§

fn as_raw_mut_SparseMat( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_flags(&mut self, val: i32)

source§

fn hdr(&mut self) -> SparseMat_Hdr

source§

fn set_hdr(&mut self, val: &impl SparseMat_HdrTraitConst)

source§

fn set(&mut self, m: &impl SparseMatTraitConst) -> Result<()>

assignment operator. This is O(1) operation, i.e. no data is copied
source§

fn set_mat(&mut self, m: &impl MatTraitConst) -> Result<()>

equivalent to the corresponding constructor
source§

fn create(&mut self, _sizes: &[i32], _type: i32) -> Result<()>

reallocates sparse matrix. Read more
source§

fn clear(&mut self) -> Result<()>

sets all the sparse matrix elements to 0, which means clearing the hash table.
source§

unsafe fn addref(&mut self) -> Result<()>

manually increments the reference counter to the header.
source§

unsafe fn release(&mut self) -> Result<()>

source§

fn ptr( &mut self, i0: i32, create_missing: bool, hashval: &mut size_t ) -> Result<*mut u8>

specialized variants for 1D, 2D, 3D cases and the generic_type one for n-D case. return pointer to the matrix element. - if the element is there (it’s non-zero), the pointer to it is returned - if it’s not there and createMissing=false, NULL pointer is returned - if it’s not there and createMissing=true, then the new element is created and initialized with 0. Pointer to it is returned - if the optional hashval pointer is not NULL, the element hash value is not computed, but *hashval is taken instead. Read more
source§

fn ptr_def(&mut self, i0: i32, create_missing: bool) -> Result<*mut u8>

specialized variants for 1D, 2D, 3D cases and the generic_type one for n-D case. return pointer to the matrix element. - if the element is there (it’s non-zero), the pointer to it is returned - if it’s not there and createMissing=false, NULL pointer is returned - if it’s not there and createMissing=true, then the new element is created and initialized with 0. Pointer to it is returned - if the optional hashval pointer is not NULL, the element hash value is not computed, but *hashval is taken instead. Read more
source§

fn ptr_1( &mut self, i0: i32, i1: i32, create_missing: bool, hashval: &mut size_t ) -> Result<*mut u8>

returns pointer to the specified element (2D case) Read more
source§

fn ptr_def_1( &mut self, i0: i32, i1: i32, create_missing: bool ) -> Result<*mut u8>

returns pointer to the specified element (2D case) Read more
source§

fn ptr_2( &mut self, i0: i32, i1: i32, i2: i32, create_missing: bool, hashval: &mut size_t ) -> Result<*mut u8>

returns pointer to the specified element (3D case) Read more
source§

fn ptr_def_2( &mut self, i0: i32, i1: i32, i2: i32, create_missing: bool ) -> Result<*mut u8>

returns pointer to the specified element (3D case) Read more
source§

fn ptr_3( &mut self, idx: &i32, create_missing: bool, hashval: &mut size_t ) -> Result<*mut u8>

returns pointer to the specified element (nD case) Read more
source§

fn ptr_def_3(&mut self, idx: &i32, create_missing: bool) -> Result<*mut u8>

returns pointer to the specified element (nD case) Read more
source§

fn erase(&mut self, i0: i32, i1: i32, hashval: &mut size_t) -> Result<()>

erases the specified element (2D case) Read more
source§

fn erase_def(&mut self, i0: i32, i1: i32) -> Result<()>

erases the specified element (2D case) Read more
source§

fn erase_1( &mut self, i0: i32, i1: i32, i2: i32, hashval: &mut size_t ) -> Result<()>

erases the specified element (3D case) Read more
source§

fn erase_def_1(&mut self, i0: i32, i1: i32, i2: i32) -> Result<()>

erases the specified element (3D case) Read more
source§

fn erase_2(&mut self, idx: &i32, hashval: &mut size_t) -> Result<()>

erases the specified element (nD case) Read more
source§

fn erase_def_2(&mut self, idx: &i32) -> Result<()>

erases the specified element (nD case) Read more
source§

fn begin_mut(&mut self) -> Result<SparseMatIterator>

return the sparse matrix iterator pointing to the first sparse matrix element Read more
source§

fn end_mut(&mut self) -> Result<SparseMatIterator>

return the sparse matrix iterator pointing to the element following the last sparse matrix element Read more
source§

fn node_1(&mut self, nidx: size_t) -> Result<SparseMat_Node>

/////////// some internal-use methods ///////////////
source§

fn new_node(&mut self, idx: &i32, hashval: size_t) -> Result<*mut u8>

source§

fn remove_node( &mut self, hidx: size_t, nidx: size_t, previdx: size_t ) -> Result<()>

source§

fn resize_hash_tab(&mut self, newsize: size_t) -> Result<()>

source§

impl SparseMatTraitConst for BoxedRefMut<'_, SparseMat>

source§

fn as_raw_SparseMat(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn flags(&self) -> i32

source§

fn try_clone(&self) -> Result<SparseMat>

creates full copy of the matrix
source§

fn copy_to(&self, m: &mut impl SparseMatTrait) -> Result<()>

copies all the data to the destination matrix. All the previous content of m is erased
source§

fn copy_to_mat(&self, m: &mut impl MatTrait) -> Result<()>

converts sparse matrix to dense matrix.
source§

fn convert_to( &self, m: &mut impl SparseMatTrait, rtype: i32, alpha: f64 ) -> Result<()>

multiplies all the matrix elements by the specified scale factor alpha and converts the results to the specified data type Read more
source§

fn convert_to_def(&self, m: &mut impl SparseMatTrait, rtype: i32) -> Result<()>

multiplies all the matrix elements by the specified scale factor alpha and converts the results to the specified data type Read more
source§

fn convert_to_1( &self, m: &mut impl MatTrait, rtype: i32, alpha: f64, beta: f64 ) -> Result<()>

converts sparse matrix to dense n-dim matrix with optional type conversion and scaling. Read more
source§

fn convert_to_def_1(&self, m: &mut impl MatTrait, rtype: i32) -> Result<()>

converts sparse matrix to dense n-dim matrix with optional type conversion and scaling. Read more
source§

fn assign_to(&self, m: &mut impl SparseMatTrait, typ: i32) -> Result<()>

C++ default parameters Read more
source§

fn assign_to_def(&self, m: &mut impl SparseMatTrait) -> Result<()>

source§

fn elem_size(&self) -> size_t

returns the size of each element in bytes (not including the overhead - the space occupied by SparseMat::Node elements)
source§

fn elem_size1(&self) -> size_t

returns elemSize()/channels()
source§

fn typ(&self) -> i32

returns type of sparse matrix elements
source§

fn depth(&self) -> i32

returns the depth of sparse matrix elements
source§

fn channels(&self) -> i32

returns the number of channels
source§

fn size(&self) -> Result<*const i32>

returns the array of sizes, or NULL if the matrix is not allocated
source§

fn size_1(&self, i: i32) -> Result<i32>

returns the size of i-th matrix dimension (or 0)
source§

fn dims(&self) -> Result<i32>

returns the matrix dimensionality
source§

fn nzcount(&self) -> Result<size_t>

returns the number of non-zero elements (=the number of hash table nodes)
source§

fn hash(&self, i0: i32) -> Result<size_t>

computes the element hash value (1D case)
source§

fn hash_1(&self, i0: i32, i1: i32) -> Result<size_t>

computes the element hash value (2D case)
source§

fn hash_2(&self, i0: i32, i1: i32, i2: i32) -> Result<size_t>

computes the element hash value (3D case)
source§

fn hash_3(&self, idx: &i32) -> Result<size_t>

computes the element hash value (nD case)
source§

fn begin(&self) -> Result<SparseMatConstIterator>

returns the read-only sparse matrix iterator at the matrix beginning
source§

fn end(&self) -> Result<SparseMatConstIterator>

returns the read-only sparse matrix iterator at the matrix end
source§

fn node(&self, nidx: size_t) -> Result<SparseMat_Node>

source§

impl SparseMat_HdrTrait for BoxedRefMut<'_, SparseMat_Hdr>

source§

fn as_raw_mut_SparseMat_Hdr( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_refcount(&mut self, val: i32)

source§

fn set_dims(&mut self, val: i32)

source§

fn set_value_offset(&mut self, val: i32)

source§

fn set_node_size(&mut self, val: size_t)

source§

fn set_node_count(&mut self, val: size_t)

source§

fn set_free_list(&mut self, val: size_t)

source§

fn set_pool(&mut self, val: Vector<u8>)

source§

fn set_hashtab(&mut self, val: Vector<size_t>)

source§

fn size_mut(&mut self) -> &mut [i32; 32]

source§

fn clear(&mut self) -> Result<()>

source§

impl SparseMat_HdrTraitConst for BoxedRefMut<'_, SparseMat_Hdr>

source§

fn as_raw_SparseMat_Hdr( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn refcount(&self) -> i32

source§

fn dims(&self) -> i32

source§

fn value_offset(&self) -> i32

source§

fn node_size(&self) -> size_t

source§

fn node_count(&self) -> size_t

source§

fn free_list(&self) -> size_t

source§

fn pool(&self) -> Vector<u8>

source§

fn hashtab(&self) -> Vector<size_t>

source§

fn size(&self) -> &[i32; 32]

source§

impl SparseMat_NodeTrait for BoxedRefMut<'_, SparseMat_Node>

source§

fn as_raw_mut_SparseMat_Node( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_hashval(&mut self, val: size_t)

hash value
source§

fn set_next(&mut self, val: size_t)

index of the next node in the same hash table entry
source§

fn idx_mut(&mut self) -> &mut [i32; 32]

index of the matrix element
source§

impl SparseMat_NodeTraitConst for BoxedRefMut<'_, SparseMat_Node>

source§

fn as_raw_SparseMat_Node( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn hashval(&self) -> size_t

hash value
source§

fn next(&self) -> size_t

index of the next node in the same hash table entry
source§

fn idx(&self) -> &[i32; 32]

index of the matrix element
source§

impl SplitLayerTrait for BoxedRefMut<'_, SplitLayer>

source§

fn as_raw_mut_SplitLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_outputs_count(&mut self, val: i32)

Number of copies that will be produced (is ignored when negative).
source§

impl SplitLayerTraitConst for BoxedRefMut<'_, SplitLayer>

source§

fn as_raw_SplitLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn outputs_count(&self) -> i32

Number of copies that will be produced (is ignored when negative).
source§

impl StreamTrait for BoxedRefMut<'_, Stream>

source§

fn as_raw_mut_Stream( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn wait_for_completion(&mut self) -> Result<()>

Blocks the current CPU thread until all operations in the stream are complete.
source§

fn wait_event(&mut self, event: &impl EventTraitConst) -> Result<()>

Makes a compute stream wait on an event.
source§

fn enqueue_host_callback( &mut self, callback: Stream_StreamCallback ) -> Result<()>

Adds a callback to be called on the host after all currently enqueued items in the stream have completed. Read more
source§

impl StreamTraitConst for BoxedRefMut<'_, Stream>

source§

fn as_raw_Stream(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn query_if_complete(&self) -> Result<bool>

Returns true if the current stream queue is finished. Otherwise, it returns false.
source§

fn cuda_ptr(&self) -> Result<*mut c_void>

return Pointer to CUDA stream
source§

impl Subdiv2DTrait for BoxedRefMut<'_, Subdiv2D>

source§

fn as_raw_mut_Subdiv2D( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn init_delaunay(&mut self, rect: Rect) -> Result<()>

Creates a new empty Delaunay subdivision Read more
source§

fn insert(&mut self, pt: Point2f) -> Result<i32>

Insert a single point into a Delaunay triangulation. Read more
source§

fn insert_multiple(&mut self, ptvec: &Vector<Point2f>) -> Result<()>

Insert multiple points into a Delaunay triangulation. Read more
source§

fn locate( &mut self, pt: Point2f, edge: &mut i32, vertex: &mut i32 ) -> Result<i32>

Returns the location of a point within a Delaunay triangulation. Read more
source§

fn find_nearest(&mut self, pt: Point2f, nearest_pt: &mut Point2f) -> Result<i32>

Finds the subdivision vertex closest to the given point. Read more
source§

fn find_nearest_def(&mut self, pt: Point2f) -> Result<i32>

Finds the subdivision vertex closest to the given point. Read more
source§

fn get_voronoi_facet_list( &mut self, idx: &Vector<i32>, facet_list: &mut Vector<Vector<Point2f>>, facet_centers: &mut Vector<Point2f> ) -> Result<()>

Returns a list of all Voronoi facets. Read more
source§

impl Subdiv2DTraitConst for BoxedRefMut<'_, Subdiv2D>

source§

fn as_raw_Subdiv2D(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_edge_list(&self, edge_list: &mut Vector<Vec4f>) -> Result<()>

Returns a list of all edges. Read more
source§

fn get_leading_edge_list( &self, leading_edge_list: &mut Vector<i32> ) -> Result<()>

Returns a list of the leading edge ID connected to each triangle. Read more
source§

fn get_triangle_list(&self, triangle_list: &mut Vector<Vec6f>) -> Result<()>

Returns a list of all triangles. Read more
source§

fn get_vertex(&self, vertex: i32, first_edge: &mut i32) -> Result<Point2f>

Returns vertex location from vertex ID. Read more
source§

fn get_vertex_def(&self, vertex: i32) -> Result<Point2f>

Returns vertex location from vertex ID. Read more
source§

fn get_edge(&self, edge: i32, next_edge_type: i32) -> Result<i32>

Returns one of the edges related to the given edge. Read more
source§

fn next_edge(&self, edge: i32) -> Result<i32>

Returns next edge around the edge origin. Read more
source§

fn rotate_edge(&self, edge: i32, rotate: i32) -> Result<i32>

Returns another edge of the same quad-edge. Read more
source§

fn sym_edge(&self, edge: i32) -> Result<i32>

source§

fn edge_org(&self, edge: i32, orgpt: &mut Point2f) -> Result<i32>

Returns the edge origin. Read more
source§

fn edge_org_def(&self, edge: i32) -> Result<i32>

Returns the edge origin. Read more
source§

fn edge_dst(&self, edge: i32, dstpt: &mut Point2f) -> Result<i32>

Returns the edge destination. Read more
source§

fn edge_dst_def(&self, edge: i32) -> Result<i32>

Returns the edge destination. Read more
source§

impl SwishLayerTrait for BoxedRefMut<'_, SwishLayer>

source§

fn as_raw_mut_SwishLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl SwishLayerTraitConst for BoxedRefMut<'_, SwishLayer>

source§

fn as_raw_SwishLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl TanHLayerTrait for BoxedRefMut<'_, TanHLayer>

source§

fn as_raw_mut_TanHLayer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl TanHLayerTraitConst for BoxedRefMut<'_, TanHLayer>

source§

fn as_raw_TanHLayer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl TargetArchsTrait for BoxedRefMut<'_, TargetArchs>

source§

fn as_raw_mut_TargetArchs( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl TargetArchsTraitConst for BoxedRefMut<'_, TargetArchs>

source§

fn as_raw_TargetArchs(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel>

source§

fn as_raw_mut_TextDetectionModel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel_DB>

source§

fn as_raw_mut_TextDetectionModel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl TextDetectionModelTrait for BoxedRefMut<'_, TextDetectionModel_EAST>

source§

fn as_raw_mut_TextDetectionModel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel>

source§

fn as_raw_TextDetectionModel( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn detect_with_confidences( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, confidences: &mut Vector<f32> ) -> Result<()>

Performs detection Read more
source§

fn detect( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>> ) -> Result<()>

Performs detection Read more
source§

fn detect_text_rectangles( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, confidences: &mut Vector<f32> ) -> Result<()>

Performs detection Read more
source§

fn detect_text_rectangles_1( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect> ) -> Result<()>

Performs detection Read more
source§

impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>

source§

fn as_raw_TextDetectionModel( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn detect_with_confidences( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, confidences: &mut Vector<f32> ) -> Result<()>

Performs detection Read more
source§

fn detect( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>> ) -> Result<()>

Performs detection Read more
source§

fn detect_text_rectangles( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, confidences: &mut Vector<f32> ) -> Result<()>

Performs detection Read more
source§

fn detect_text_rectangles_1( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect> ) -> Result<()>

Performs detection Read more
source§

impl TextDetectionModelTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>

source§

fn as_raw_TextDetectionModel( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn detect_with_confidences( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>>, confidences: &mut Vector<f32> ) -> Result<()>

Performs detection Read more
source§

fn detect( &self, frame: &impl ToInputArray, detections: &mut Vector<Vector<Point>> ) -> Result<()>

Performs detection Read more
source§

fn detect_text_rectangles( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect>, confidences: &mut Vector<f32> ) -> Result<()>

Performs detection Read more
source§

fn detect_text_rectangles_1( &self, frame: &impl ToInputArray, detections: &mut Vector<RotatedRect> ) -> Result<()>

Performs detection Read more
source§

impl TextDetectionModel_DBTrait for BoxedRefMut<'_, TextDetectionModel_DB>

source§

fn as_raw_mut_TextDetectionModel_DB( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_binary_threshold( &mut self, binary_threshold: f32 ) -> Result<TextDetectionModel_DB>

source§

fn set_polygon_threshold( &mut self, polygon_threshold: f32 ) -> Result<TextDetectionModel_DB>

source§

fn set_unclip_ratio( &mut self, unclip_ratio: f64 ) -> Result<TextDetectionModel_DB>

source§

fn set_max_candidates( &mut self, max_candidates: i32 ) -> Result<TextDetectionModel_DB>

source§

impl TextDetectionModel_DBTraitConst for BoxedRefMut<'_, TextDetectionModel_DB>

source§

fn as_raw_TextDetectionModel_DB( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_binary_threshold(&self) -> Result<f32>

source§

fn get_polygon_threshold(&self) -> Result<f32>

source§

fn get_unclip_ratio(&self) -> Result<f64>

source§

fn get_max_candidates(&self) -> Result<i32>

source§

impl TextDetectionModel_EASTTrait for BoxedRefMut<'_, TextDetectionModel_EAST>

source§

fn as_raw_mut_TextDetectionModel_EAST( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_confidence_threshold( &mut self, conf_threshold: f32 ) -> Result<TextDetectionModel_EAST>

Set the detection confidence threshold Read more
source§

fn set_nms_threshold( &mut self, nms_threshold: f32 ) -> Result<TextDetectionModel_EAST>

Set the detection NMS filter threshold Read more
source§

impl TextDetectionModel_EASTTraitConst for BoxedRefMut<'_, TextDetectionModel_EAST>

source§

fn as_raw_TextDetectionModel_EAST( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_confidence_threshold(&self) -> Result<f32>

Get the detection confidence threshold
source§

fn get_nms_threshold(&self) -> Result<f32>

Get the detection confidence threshold
source§

impl TextRecognitionModelTrait for BoxedRefMut<'_, TextRecognitionModel>

source§

fn as_raw_mut_TextRecognitionModel( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_decode_type(&mut self, decode_type: &str) -> Result<TextRecognitionModel>

Set the decoding method of translating the network output into string Read more
Set the decoding method options for "CTC-prefix-beam-search" decode usage Read more
source§

fn set_decode_opts_ctc_prefix_beam_search_def( &mut self, beam_size: i32 ) -> Result<TextRecognitionModel>

Set the decoding method options for "CTC-prefix-beam-search" decode usage Read more
source§

fn set_vocabulary( &mut self, vocabulary: &Vector<String> ) -> Result<TextRecognitionModel>

Set the vocabulary for recognition. Read more
source§

impl TextRecognitionModelTraitConst for BoxedRefMut<'_, TextRecognitionModel>

source§

fn as_raw_TextRecognitionModel( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_decode_type(&self) -> Result<String>

Get the decoding method Read more
source§

fn get_vocabulary(&self) -> Result<Vector<String>>

Get the vocabulary for recognition. Read more
source§

fn recognize(&self, frame: &impl ToInputArray) -> Result<String>

Given the @p input frame, create input blob, run net and return recognition result Read more
source§

fn recognize_1( &self, frame: &impl ToInputArray, roi_rects: &impl ToInputArray, results: &mut Vector<String> ) -> Result<()>

Given the @p input frame, create input blob, run net and return recognition result Read more
source§

impl Texture2DTrait for BoxedRefMut<'_, Texture2D>

source§

fn as_raw_mut_Texture2D( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn create( &mut self, arows: i32, acols: i32, aformat: Texture2D_Format, auto_release: bool ) -> Result<()>

Allocates memory for ogl::Texture2D object. Read more
source§

fn create_def( &mut self, arows: i32, acols: i32, aformat: Texture2D_Format ) -> Result<()>

Allocates memory for ogl::Texture2D object. Read more
source§

fn create_1( &mut self, asize: Size, aformat: Texture2D_Format, auto_release: bool ) -> Result<()>

Allocates memory for ogl::Texture2D object. Read more
source§

fn create_def_1(&mut self, asize: Size, aformat: Texture2D_Format) -> Result<()>

@overload Read more
source§

fn release(&mut self) -> Result<()>

Decrements the reference counter and destroys the texture object if needed. Read more
source§

fn set_auto_release(&mut self, flag: bool) -> Result<()>

Sets auto release mode. Read more
source§

fn copy_from( &mut self, arr: &impl ToInputArray, auto_release: bool ) -> Result<()>

Copies from host/device memory to OpenGL texture. Read more
source§

fn copy_from_def(&mut self, arr: &impl ToInputArray) -> Result<()>

Copies from host/device memory to OpenGL texture. Read more
source§

impl Texture2DTraitConst for BoxedRefMut<'_, Texture2D>

source§

fn as_raw_Texture2D(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn copy_to( &self, arr: &mut impl ToOutputArray, ddepth: i32, auto_release: bool ) -> Result<()>

Copies from OpenGL texture to host/device memory or another OpenGL texture object. Read more
source§

fn copy_to_def(&self, arr: &mut impl ToOutputArray) -> Result<()>

Copies from OpenGL texture to host/device memory or another OpenGL texture object. Read more
source§

fn bind(&self) -> Result<()>

Binds texture to current active texture unit for GL_TEXTURE_2D target.
source§

fn rows(&self) -> Result<i32>

source§

fn cols(&self) -> Result<i32>

source§

fn size(&self) -> Result<Size>

source§

fn empty(&self) -> Result<bool>

source§

fn format(&self) -> Result<Texture2D_Format>

source§

fn tex_id(&self) -> Result<u32>

get OpenGL opject id
source§

impl TickMeterTrait for BoxedRefMut<'_, TickMeter>

source§

fn as_raw_mut_TickMeter( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn start(&mut self) -> Result<()>

starts counting ticks.
source§

fn stop(&mut self) -> Result<()>

stops counting ticks.
source§

fn reset(&mut self) -> Result<()>

resets internal values.
source§

impl TickMeterTraitConst for BoxedRefMut<'_, TickMeter>

source§

fn as_raw_TickMeter(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_time_ticks(&self) -> Result<i64>

returns counted ticks.
source§

fn get_time_micro(&self) -> Result<f64>

returns passed time in microseconds.
source§

fn get_time_milli(&self) -> Result<f64>

returns passed time in milliseconds.
source§

fn get_time_sec(&self) -> Result<f64>

returns passed time in seconds.
source§

fn get_counter(&self) -> Result<i64>

returns internal counter value.
source§

fn get_fps(&self) -> Result<f64>

returns average FPS (frames per second) value.
source§

fn get_avg_time_sec(&self) -> Result<f64>

returns average time in seconds
source§

fn get_avg_time_milli(&self) -> Result<f64>

returns average time in milliseconds
source§

impl TimerTrait for BoxedRefMut<'_, Timer>

source§

fn as_raw_mut_Timer( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn start(&mut self) -> Result<()>

source§

fn stop(&mut self) -> Result<()>

source§

impl TimerTraitConst for BoxedRefMut<'_, Timer>

source§

fn as_raw_Timer(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn duration_ns(&self) -> Result<u64>

source§

impl<T> ToInputArray for &BoxedRefMut<'_, T>
where T: Boxed + ToInputArray,

source§

impl<T> ToInputArray for BoxedRefMut<'_, T>
where T: Boxed + ToInputArray,

source§

impl<T> ToInputOutputArray for &mut BoxedRefMut<'_, T>

source§

impl<T> ToInputOutputArray for BoxedRefMut<'_, T>

source§

impl<T> ToOutputArray for &mut BoxedRefMut<'_, T>
where T: Boxed + ToOutputArray,

source§

impl<T> ToOutputArray for BoxedRefMut<'_, T>
where T: Boxed + ToOutputArray,

source§

impl UMatDataTrait for BoxedRefMut<'_, UMatData>

source§

fn as_raw_mut_UMatData( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_urefcount(&mut self, val: i32)

source§

fn set_refcount(&mut self, val: i32)

source§

fn data_mut(&mut self) -> *mut u8

source§

unsafe fn set_data(&mut self, val: *const u8)

source§

fn origdata_mut(&mut self) -> *mut u8

source§

unsafe fn set_origdata(&mut self, val: *const u8)

source§

fn set_size(&mut self, val: size_t)

source§

fn set_flags(&mut self, val: UMatData_MemoryFlag)

source§

fn handle(&mut self) -> *mut c_void

source§

unsafe fn set_handle(&mut self, val: *const c_void)

source§

fn userdata(&mut self) -> *mut c_void

source§

unsafe fn set_userdata(&mut self, val: *const c_void)

source§

fn set_allocator_flags_(&mut self, val: i32)

source§

fn set_mapcount(&mut self, val: i32)

source§

fn original_umat_data(&mut self) -> UMatData

source§

fn set_original_umat_data(&mut self, val: &impl UMatDataTraitConst)

source§

fn lock(&mut self) -> Result<()>

source§

fn unlock(&mut self) -> Result<()>

source§

fn mark_host_copy_obsolete(&mut self, flag: bool) -> Result<()>

source§

fn mark_device_copy_obsolete(&mut self, flag: bool) -> Result<()>

source§

fn mark_device_mem_mapped(&mut self, flag: bool) -> Result<()>

source§

impl UMatDataTraitConst for BoxedRefMut<'_, UMatData>

source§

fn as_raw_UMatData(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn urefcount(&self) -> i32

source§

fn refcount(&self) -> i32

source§

fn data(&self) -> *const u8

source§

fn origdata(&self) -> *const u8

source§

fn size(&self) -> size_t

source§

fn flags(&self) -> UMatData_MemoryFlag

source§

fn allocator_flags_(&self) -> i32

source§

fn mapcount(&self) -> i32

source§

fn host_copy_obsolete(&self) -> Result<bool>

source§

fn device_copy_obsolete(&self) -> Result<bool>

source§

fn device_mem_mapped(&self) -> Result<bool>

source§

fn copy_on_map(&self) -> Result<bool>

source§

fn temp_umat(&self) -> Result<bool>

source§

fn temp_copied_umat(&self) -> Result<bool>

source§

impl UMatTrait for BoxedRefMut<'_, UMat>

source§

fn as_raw_mut_UMat( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn set_flags(&mut self, val: i32)

! includes several bit-fields: Read more
source§

fn set_dims(&mut self, val: i32)

the matrix dimensionality, >= 2
source§

fn set_rows(&mut self, val: i32)

number of rows in the matrix; -1 when the matrix has more than 2 dimensions
source§

fn set_cols(&mut self, val: i32)

number of columns in the matrix; -1 when the matrix has more than 2 dimensions
source§

fn set_usage_flags(&mut self, val: UMatUsageFlags)

usage flags for allocator; recommend do not set directly, instead set during construct/create/getUMat
source§

fn u(&mut self) -> UMatData

black-box container of UMat data
source§

fn set_u(&mut self, val: &impl UMatDataTraitConst)

black-box container of UMat data
source§

fn set_offset(&mut self, val: size_t)

offset of the submatrix (or 0)
source§

fn set_size(&mut self, val: MatSize)

dimensional size of the matrix; accessible in various formats
source§

fn set(&mut self, m: &impl UMatTraitConst) -> Result<()>

assignment operators
source§

fn row_mut(&mut self, y: i32) -> Result<BoxedRefMut<'_, UMat>>

returns a new matrix header for the specified row
source§

fn col_mut(&mut self, x: i32) -> Result<BoxedRefMut<'_, UMat>>

returns a new matrix header for the specified column
source§

fn row_bounds_mut( &mut self, startrow: i32, endrow: i32 ) -> Result<BoxedRefMut<'_, UMat>>

… for the specified row span
source§

fn row_range_mut( &mut self, r: &impl RangeTraitConst ) -> Result<BoxedRefMut<'_, UMat>>

source§

fn col_bounds_mut( &mut self, startcol: i32, endcol: i32 ) -> Result<BoxedRefMut<'_, UMat>>

… for the specified column span
source§

fn col_range_mut( &mut self, r: &impl RangeTraitConst ) -> Result<BoxedRefMut<'_, UMat>>

source§

fn diag_def_mut(&mut self) -> Result<BoxedRefMut<'_, UMat>>

… for the specified diagonal (d=0 - the main diagonal, >0 - a diagonal from the upper half, <0 - a diagonal from the lower half) Read more
source§

fn diag_mut(&mut self, d: i32) -> Result<BoxedRefMut<'_, UMat>>

… for the specified diagonal (d=0 - the main diagonal, >0 - a diagonal from the upper half, <0 - a diagonal from the lower half) Read more
source§

fn set_scalar(&mut self, s: Scalar) -> Result<()>

sets every matrix element to s
source§

fn set_to( &mut self, value: &impl ToInputArray, mask: &impl ToInputArray ) -> Result<UMat>

sets some of the matrix elements to s, according to the mask Read more
source§

fn set_to_def(&mut self, value: &impl ToInputArray) -> Result<UMat>

sets some of the matrix elements to s, according to the mask Read more
source§

fn reshape_def_mut(&mut self, cn: i32) -> Result<BoxedRefMut<'_, UMat>>

creates alternative matrix header for the same data, with different Read more
source§

fn reshape_mut(&mut self, cn: i32, rows: i32) -> Result<BoxedRefMut<'_, UMat>>

creates alternative matrix header for the same data, with different Read more
source§

fn reshape_nd_mut( &mut self, cn: i32, newsz: &[i32] ) -> Result<BoxedRefMut<'_, UMat>>

source§

unsafe fn create_rows_cols( &mut self, rows: i32, cols: i32, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()>

allocates new matrix data unless the matrix already has specified size and type. Read more
source§

fn create_rows_cols_def(&mut self, rows: i32, cols: i32, typ: i32) -> Result<()>

allocates new matrix data unless the matrix already has specified size and type. Read more
source§

unsafe fn create_size( &mut self, size: Size, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()>

C++ default parameters Read more
source§

fn create_size_def(&mut self, size: Size, typ: i32) -> Result<()>

source§

unsafe fn create_nd( &mut self, sizes: &[i32], typ: i32, usage_flags: UMatUsageFlags ) -> Result<()>

C++ default parameters Read more
source§

fn create_nd_def(&mut self, sizes: &[i32], typ: i32) -> Result<()>

source§

unsafe fn create_nd_vec( &mut self, sizes: &Vector<i32>, typ: i32, usage_flags: UMatUsageFlags ) -> Result<()>

C++ default parameters Read more
source§

fn create_nd_vec_def(&mut self, sizes: &Vector<i32>, typ: i32) -> Result<()>

source§

unsafe fn addref(&mut self) -> Result<()>

increases the reference counter; use with care to avoid memleaks
source§

unsafe fn release(&mut self) -> Result<()>

decreases reference counter;
source§

fn deallocate(&mut self) -> Result<()>

deallocates the matrix data
source§

fn adjust_roi( &mut self, dtop: i32, dbottom: i32, dleft: i32, dright: i32 ) -> Result<UMat>

moves/resizes the current matrix ROI inside the parent matrix.
source§

fn rowscols_mut( &mut self, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRefMut<'_, UMat>>

extracts a rectangular sub-matrix
source§

fn roi_mut(&mut self, roi: Rect) -> Result<BoxedRefMut<'_, UMat>>

source§

fn ranges_mut( &mut self, ranges: &Vector<Range> ) -> Result<BoxedRefMut<'_, UMat>>

source§

fn set_1(&mut self, m: UMat) -> Result<()>

source§

fn update_continuity_flag(&mut self) -> Result<()>

internal use method: updates the continuity flag
source§

impl UMatTraitConst for BoxedRefMut<'_, UMat>

source§

fn as_raw_UMat(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn flags(&self) -> i32

! includes several bit-fields: Read more
source§

fn dims(&self) -> i32

the matrix dimensionality, >= 2
source§

fn rows(&self) -> i32

number of rows in the matrix; -1 when the matrix has more than 2 dimensions
source§

fn cols(&self) -> i32

number of columns in the matrix; -1 when the matrix has more than 2 dimensions
source§

fn usage_flags(&self) -> UMatUsageFlags

usage flags for allocator; recommend do not set directly, instead set during construct/create/getUMat
source§

fn offset(&self) -> size_t

offset of the submatrix (or 0)
source§

fn mat_size(&self) -> MatSize

dimensional size of the matrix; accessible in various formats
source§

fn mat_step(&self) -> MatStep

number of bytes each matrix element/row/plane/dimension occupies
source§

fn get_mat(&self, flags: AccessFlag) -> Result<Mat>

source§

fn row(&self, y: i32) -> Result<BoxedRef<'_, UMat>>

returns a new matrix header for the specified row
source§

fn col(&self, x: i32) -> Result<BoxedRef<'_, UMat>>

returns a new matrix header for the specified column
source§

fn row_bounds(&self, startrow: i32, endrow: i32) -> Result<BoxedRef<'_, UMat>>

… for the specified row span
source§

fn row_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, UMat>>

source§

fn col_bounds(&self, startcol: i32, endcol: i32) -> Result<BoxedRef<'_, UMat>>

… for the specified column span
source§

fn col_range(&self, r: &impl RangeTraitConst) -> Result<BoxedRef<'_, UMat>>

source§

fn diag(&self, d: i32) -> Result<BoxedRef<'_, UMat>>

… for the specified diagonal (d=0 - the main diagonal, >0 - a diagonal from the upper half, <0 - a diagonal from the lower half) Read more
source§

fn diag_def(&self) -> Result<BoxedRef<'_, UMat>>

… for the specified diagonal (d=0 - the main diagonal, >0 - a diagonal from the upper half, <0 - a diagonal from the lower half) Read more
source§

fn try_clone(&self) -> Result<UMat>

returns deep copy of the matrix, i.e. the data is copied
source§

fn copy_to(&self, m: &mut impl ToOutputArray) -> Result<()>

copies the matrix content to “m”.
source§

fn copy_to_masked( &self, m: &mut impl ToOutputArray, mask: &impl ToInputArray ) -> Result<()>

copies those matrix elements to “m” that are marked with non-zero mask elements.
source§

fn convert_to( &self, m: &mut impl ToOutputArray, rtype: i32, alpha: f64, beta: f64 ) -> Result<()>

converts matrix to another datatype with optional scaling. See cvConvertScale. Read more
source§

fn convert_to_def(&self, m: &mut impl ToOutputArray, rtype: i32) -> Result<()>

converts matrix to another datatype with optional scaling. See cvConvertScale. Read more
source§

fn assign_to(&self, m: &mut impl UMatTrait, typ: i32) -> Result<()>

C++ default parameters Read more
source§

fn assign_to_def(&self, m: &mut impl UMatTrait) -> Result<()>

source§

fn reshape(&self, cn: i32, rows: i32) -> Result<BoxedRef<'_, UMat>>

creates alternative matrix header for the same data, with different Read more
source§

fn reshape_def(&self, cn: i32) -> Result<BoxedRef<'_, UMat>>

creates alternative matrix header for the same data, with different Read more
source§

fn reshape_nd(&self, cn: i32, newsz: &[i32]) -> Result<BoxedRef<'_, UMat>>

source§

fn t(&self) -> Result<UMat>

matrix transposition by means of matrix expressions
source§

fn inv(&self, method: i32) -> Result<UMat>

matrix inversion by means of matrix expressions Read more
source§

fn inv_def(&self) -> Result<UMat>

matrix inversion by means of matrix expressions Read more
source§

fn mul(&self, m: &impl ToInputArray, scale: f64) -> Result<UMat>

per-element matrix multiplication by means of matrix expressions Read more
source§

fn mul_def(&self, m: &impl ToInputArray) -> Result<UMat>

per-element matrix multiplication by means of matrix expressions Read more
source§

fn dot(&self, m: &impl ToInputArray) -> Result<f64>

computes dot-product
source§

fn locate_roi(&self, whole_size: &mut Size, ofs: &mut Point) -> Result<()>

locates matrix header within a parent matrix. See below
source§

fn rowscols( &self, row_range: impl RangeTrait, col_range: impl RangeTrait ) -> Result<BoxedRef<'_, UMat>>

extracts a rectangular sub-matrix
source§

fn roi(&self, roi: Rect) -> Result<BoxedRef<'_, UMat>>

source§

fn ranges(&self, ranges: &Vector<Range>) -> Result<BoxedRef<'_, UMat>>

source§

fn is_continuous(&self) -> bool

returns true iff the matrix data is continuous
source§

fn is_submatrix(&self) -> bool

returns true if the matrix is a submatrix of another matrix
source§

fn elem_size(&self) -> Result<size_t>

returns element size in bytes,
source§

fn elem_size1(&self) -> size_t

returns the size of element channel in bytes.
source§

fn typ(&self) -> i32

returns element type, similar to CV_MAT_TYPE(cvmat->type)
source§

fn depth(&self) -> i32

returns element type, similar to CV_MAT_DEPTH(cvmat->type)
source§

fn channels(&self) -> i32

returns element type, similar to CV_MAT_CN(cvmat->type)
source§

fn step1(&self, i: i32) -> Result<size_t>

returns step/elemSize1() Read more
source§

fn step1_def(&self) -> Result<size_t>

returns step/elemSize1() Read more
source§

fn empty(&self) -> bool

returns true if matrix data is NULL
source§

fn total(&self) -> size_t

returns the total number of matrix elements
source§

fn check_vector( &self, elem_channels: i32, depth: i32, require_continuous: bool ) -> Result<i32>

returns N if the matrix is 1-channel (N x ptdim) or ptdim-channel (1 x N) or (N x 1); negative number otherwise Read more
source§

fn check_vector_def(&self, elem_channels: i32) -> Result<i32>

returns N if the matrix is 1-channel (N x ptdim) or ptdim-channel (1 x N) or (N x 1); negative number otherwise Read more
source§

fn handle(&self, access_flags: AccessFlag) -> Result<*mut c_void>

! Returns the OpenCL buffer handle on which UMat operates on. The UMat instance should be kept alive during the use of the handle to prevent the buffer to be returned to the OpenCV buffer pool.
source§

fn ndoffset(&self, ofs: &mut size_t) -> Result<()>

source§

fn size(&self) -> Result<Size>

source§

impl VideoCaptureTrait for BoxedRefMut<'_, VideoCapture>

source§

fn as_raw_mut_VideoCapture( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn open_file(&mut self, filename: &str, api_preference: i32) -> Result<bool>

Opens a video file or a capturing device or an IP video stream for video capturing. Read more
source§

fn open_file_def(&mut self, filename: &str) -> Result<bool>

Opens a video file or a capturing device or an IP video stream for video capturing. Read more
source§

fn open_file_with_params( &mut self, filename: &str, api_preference: i32, params: &Vector<i32> ) -> Result<bool>

Opens a camera for video capturing Read more
source§

fn open(&mut self, index: i32, api_preference: i32) -> Result<bool>

Opens a camera for video capturing Read more
source§

fn open_def(&mut self, index: i32) -> Result<bool>

Opens a camera for video capturing Read more
source§

fn open_with_params( &mut self, index: i32, api_preference: i32, params: &Vector<i32> ) -> Result<bool>

Returns true if video capturing has been initialized already. Read more
source§

fn release(&mut self) -> Result<()>

Closes video file or capturing device. Read more
source§

fn grab(&mut self) -> Result<bool>

Grabs the next frame from video file or capturing device. Read more
source§

fn retrieve( &mut self, image: &mut impl ToOutputArray, flag: i32 ) -> Result<bool>

Decodes and returns the grabbed video frame. Read more
source§

fn retrieve_def(&mut self, image: &mut impl ToOutputArray) -> Result<bool>

Decodes and returns the grabbed video frame. Read more
source§

fn read(&mut self, image: &mut impl ToOutputArray) -> Result<bool>

Grabs, decodes and returns the next video frame. Read more
source§

fn set(&mut self, prop_id: i32, value: f64) -> Result<bool>

Sets a property in the VideoCapture. Read more
source§

fn set_exception_mode(&mut self, enable: bool) -> Result<()>

Switches exceptions mode Read more
source§

fn get_exception_mode(&mut self) -> Result<bool>

query if exception mode is active
source§

impl VideoCaptureTraitConst for BoxedRefMut<'_, VideoCapture>

source§

fn as_raw_VideoCapture(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn is_opened(&self) -> Result<bool>

Returns true if video capturing has been initialized already. Read more
source§

fn get(&self, prop_id: i32) -> Result<f64>

Returns the specified VideoCapture property Read more
source§

fn get_backend_name(&self) -> Result<String>

Returns used backend API name Read more
source§

impl VideoWriterTrait for BoxedRefMut<'_, VideoWriter>

source§

fn as_raw_mut_VideoWriter( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

fn open( &mut self, filename: &str, fourcc: i32, fps: f64, frame_size: Size, is_color: bool ) -> Result<bool>

Initializes or reinitializes video writer. Read more
source§

fn open_def( &mut self, filename: &str, fourcc: i32, fps: f64, frame_size: Size ) -> Result<bool>

Initializes or reinitializes video writer. Read more
source§

fn open_with_backend( &mut self, filename: &str, api_preference: i32, fourcc: i32, fps: f64, frame_size: Size, is_color: bool ) -> Result<bool>

Initializes or reinitializes video writer. Read more
source§

fn open_with_backend_def( &mut self, filename: &str, api_preference: i32, fourcc: i32, fps: f64, frame_size: Size ) -> Result<bool>

@overload Read more
source§

fn open_1( &mut self, filename: &str, fourcc: i32, fps: f64, frame_size: Size, params: &Vector<i32> ) -> Result<bool>

Initializes or reinitializes video writer. Read more
source§

fn open_2( &mut self, filename: &str, api_preference: i32, fourcc: i32, fps: f64, frame_size: Size, params: &Vector<i32> ) -> Result<bool>

Initializes or reinitializes video writer. Read more
source§

fn release(&mut self) -> Result<()>

Closes the video writer. Read more
source§

fn write(&mut self, image: &impl ToInputArray) -> Result<()>

Writes the next video frame Read more
source§

fn set(&mut self, prop_id: i32, value: f64) -> Result<bool>

Sets a property in the VideoWriter. Read more
source§

impl VideoWriterTraitConst for BoxedRefMut<'_, VideoWriter>

source§

fn as_raw_VideoWriter(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn is_opened(&self) -> Result<bool>

Returns true if video writer has been successfully initialized.
source§

fn get(&self, prop_id: i32) -> Result<f64>

Returns the specified VideoWriter property Read more
source§

fn get_backend_name(&self) -> Result<String>

Returns used backend API name Read more
source§

impl WriteStructContextTrait for BoxedRefMut<'_, WriteStructContext>

source§

fn as_raw_mut_WriteStructContext( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl WriteStructContextTraitConst for BoxedRefMut<'_, WriteStructContext>

source§

fn as_raw_WriteStructContext( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl _InputArrayTrait for BoxedRefMut<'_, _InputArray>

source§

fn as_raw_mut__InputArray( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl _InputArrayTrait for BoxedRefMut<'_, _InputOutputArray>

source§

fn as_raw_mut__InputArray( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl _InputArrayTrait for BoxedRefMut<'_, _OutputArray>

source§

fn as_raw_mut__InputArray( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl _InputArrayTraitConst for BoxedRefMut<'_, _InputArray>

source§

fn as_raw__InputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_mat(&self, idx: i32) -> Result<Mat>

C++ default parameters Read more
source§

fn get_mat_def(&self) -> Result<Mat>

source§

fn get_mat_(&self, idx: i32) -> Result<Mat>

C++ default parameters Read more
source§

fn get_mat__def(&self) -> Result<Mat>

source§

fn get_umat(&self, idx: i32) -> Result<UMat>

C++ default parameters Read more
source§

fn get_umat_def(&self) -> Result<UMat>

source§

fn get_mat_vector(&self, mv: &mut Vector<Mat>) -> Result<()>

source§

fn get_umat_vector(&self, umv: &mut Vector<UMat>) -> Result<()>

source§

fn get_gpu_mat_vector(&self, gpumv: &mut Vector<GpuMat>) -> Result<()>

source§

fn get_gpu_mat(&self) -> Result<GpuMat>

source§

fn get_o_gl_buffer(&self) -> Result<Buffer>

source§

fn get_flags(&self) -> Result<i32>

source§

fn get_obj(&self) -> Result<*mut c_void>

source§

fn get_sz(&self) -> Result<Size>

source§

fn kind(&self) -> Result<_InputArray_KindFlag>

source§

fn dims(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn dims_def(&self) -> Result<i32>

source§

fn cols(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn cols_def(&self) -> Result<i32>

source§

fn rows(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn rows_def(&self) -> Result<i32>

source§

fn size(&self, i: i32) -> Result<Size>

C++ default parameters Read more
source§

fn size_def(&self) -> Result<Size>

source§

fn sizend(&self, sz: &mut i32, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn sizend_def(&self, sz: &mut i32) -> Result<i32>

source§

fn same_size(&self, arr: &impl ToInputArray) -> Result<bool>

source§

fn total(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn total_def(&self) -> Result<size_t>

source§

fn typ(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn typ_def(&self) -> Result<i32>

source§

fn depth(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn depth_def(&self) -> Result<i32>

source§

fn channels(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn channels_def(&self) -> Result<i32>

source§

fn is_continuous(&self, i: i32) -> Result<bool>

C++ default parameters Read more
source§

fn is_continuous_def(&self) -> Result<bool>

source§

fn is_submatrix(&self, i: i32) -> Result<bool>

C++ default parameters Read more
source§

fn is_submatrix_def(&self) -> Result<bool>

source§

fn empty(&self) -> Result<bool>

source§

fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>

source§

fn copy_to_masked( &self, arr: &mut impl ToOutputArray, mask: &impl ToInputArray ) -> Result<()>

source§

fn offset(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn offset_def(&self) -> Result<size_t>

source§

fn step(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn step_def(&self) -> Result<size_t>

source§

fn is_mat(&self) -> Result<bool>

source§

fn is_umat(&self) -> Result<bool>

source§

fn is_mat_vector(&self) -> Result<bool>

source§

fn is_umat_vector(&self) -> Result<bool>

source§

fn is_matx(&self) -> Result<bool>

source§

fn is_vector(&self) -> Result<bool>

source§

fn is_gpu_mat(&self) -> Result<bool>

source§

fn is_gpu_mat_vector(&self) -> Result<bool>

source§

impl _InputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>

source§

fn as_raw__InputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_mat(&self, idx: i32) -> Result<Mat>

C++ default parameters Read more
source§

fn get_mat_def(&self) -> Result<Mat>

source§

fn get_mat_(&self, idx: i32) -> Result<Mat>

C++ default parameters Read more
source§

fn get_mat__def(&self) -> Result<Mat>

source§

fn get_umat(&self, idx: i32) -> Result<UMat>

C++ default parameters Read more
source§

fn get_umat_def(&self) -> Result<UMat>

source§

fn get_mat_vector(&self, mv: &mut Vector<Mat>) -> Result<()>

source§

fn get_umat_vector(&self, umv: &mut Vector<UMat>) -> Result<()>

source§

fn get_gpu_mat_vector(&self, gpumv: &mut Vector<GpuMat>) -> Result<()>

source§

fn get_gpu_mat(&self) -> Result<GpuMat>

source§

fn get_o_gl_buffer(&self) -> Result<Buffer>

source§

fn get_flags(&self) -> Result<i32>

source§

fn get_obj(&self) -> Result<*mut c_void>

source§

fn get_sz(&self) -> Result<Size>

source§

fn kind(&self) -> Result<_InputArray_KindFlag>

source§

fn dims(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn dims_def(&self) -> Result<i32>

source§

fn cols(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn cols_def(&self) -> Result<i32>

source§

fn rows(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn rows_def(&self) -> Result<i32>

source§

fn size(&self, i: i32) -> Result<Size>

C++ default parameters Read more
source§

fn size_def(&self) -> Result<Size>

source§

fn sizend(&self, sz: &mut i32, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn sizend_def(&self, sz: &mut i32) -> Result<i32>

source§

fn same_size(&self, arr: &impl ToInputArray) -> Result<bool>

source§

fn total(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn total_def(&self) -> Result<size_t>

source§

fn typ(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn typ_def(&self) -> Result<i32>

source§

fn depth(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn depth_def(&self) -> Result<i32>

source§

fn channels(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn channels_def(&self) -> Result<i32>

source§

fn is_continuous(&self, i: i32) -> Result<bool>

C++ default parameters Read more
source§

fn is_continuous_def(&self) -> Result<bool>

source§

fn is_submatrix(&self, i: i32) -> Result<bool>

C++ default parameters Read more
source§

fn is_submatrix_def(&self) -> Result<bool>

source§

fn empty(&self) -> Result<bool>

source§

fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>

source§

fn copy_to_masked( &self, arr: &mut impl ToOutputArray, mask: &impl ToInputArray ) -> Result<()>

source§

fn offset(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn offset_def(&self) -> Result<size_t>

source§

fn step(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn step_def(&self) -> Result<size_t>

source§

fn is_mat(&self) -> Result<bool>

source§

fn is_umat(&self) -> Result<bool>

source§

fn is_mat_vector(&self) -> Result<bool>

source§

fn is_umat_vector(&self) -> Result<bool>

source§

fn is_matx(&self) -> Result<bool>

source§

fn is_vector(&self) -> Result<bool>

source§

fn is_gpu_mat(&self) -> Result<bool>

source§

fn is_gpu_mat_vector(&self) -> Result<bool>

source§

impl _InputArrayTraitConst for BoxedRefMut<'_, _OutputArray>

source§

fn as_raw__InputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn get_mat(&self, idx: i32) -> Result<Mat>

C++ default parameters Read more
source§

fn get_mat_def(&self) -> Result<Mat>

source§

fn get_mat_(&self, idx: i32) -> Result<Mat>

C++ default parameters Read more
source§

fn get_mat__def(&self) -> Result<Mat>

source§

fn get_umat(&self, idx: i32) -> Result<UMat>

C++ default parameters Read more
source§

fn get_umat_def(&self) -> Result<UMat>

source§

fn get_mat_vector(&self, mv: &mut Vector<Mat>) -> Result<()>

source§

fn get_umat_vector(&self, umv: &mut Vector<UMat>) -> Result<()>

source§

fn get_gpu_mat_vector(&self, gpumv: &mut Vector<GpuMat>) -> Result<()>

source§

fn get_gpu_mat(&self) -> Result<GpuMat>

source§

fn get_o_gl_buffer(&self) -> Result<Buffer>

source§

fn get_flags(&self) -> Result<i32>

source§

fn get_obj(&self) -> Result<*mut c_void>

source§

fn get_sz(&self) -> Result<Size>

source§

fn kind(&self) -> Result<_InputArray_KindFlag>

source§

fn dims(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn dims_def(&self) -> Result<i32>

source§

fn cols(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn cols_def(&self) -> Result<i32>

source§

fn rows(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn rows_def(&self) -> Result<i32>

source§

fn size(&self, i: i32) -> Result<Size>

C++ default parameters Read more
source§

fn size_def(&self) -> Result<Size>

source§

fn sizend(&self, sz: &mut i32, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn sizend_def(&self, sz: &mut i32) -> Result<i32>

source§

fn same_size(&self, arr: &impl ToInputArray) -> Result<bool>

source§

fn total(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn total_def(&self) -> Result<size_t>

source§

fn typ(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn typ_def(&self) -> Result<i32>

source§

fn depth(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn depth_def(&self) -> Result<i32>

source§

fn channels(&self, i: i32) -> Result<i32>

C++ default parameters Read more
source§

fn channels_def(&self) -> Result<i32>

source§

fn is_continuous(&self, i: i32) -> Result<bool>

C++ default parameters Read more
source§

fn is_continuous_def(&self) -> Result<bool>

source§

fn is_submatrix(&self, i: i32) -> Result<bool>

C++ default parameters Read more
source§

fn is_submatrix_def(&self) -> Result<bool>

source§

fn empty(&self) -> Result<bool>

source§

fn copy_to(&self, arr: &mut impl ToOutputArray) -> Result<()>

source§

fn copy_to_masked( &self, arr: &mut impl ToOutputArray, mask: &impl ToInputArray ) -> Result<()>

source§

fn offset(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn offset_def(&self) -> Result<size_t>

source§

fn step(&self, i: i32) -> Result<size_t>

C++ default parameters Read more
source§

fn step_def(&self) -> Result<size_t>

source§

fn is_mat(&self) -> Result<bool>

source§

fn is_umat(&self) -> Result<bool>

source§

fn is_mat_vector(&self) -> Result<bool>

source§

fn is_umat_vector(&self) -> Result<bool>

source§

fn is_matx(&self) -> Result<bool>

source§

fn is_vector(&self) -> Result<bool>

source§

fn is_gpu_mat(&self) -> Result<bool>

source§

fn is_gpu_mat_vector(&self) -> Result<bool>

source§

impl _InputOutputArrayTrait for BoxedRefMut<'_, _InputOutputArray>

source§

fn as_raw_mut__InputOutputArray( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl _InputOutputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>

source§

fn as_raw__InputOutputArray( &self ) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

impl _OutputArrayTrait for BoxedRefMut<'_, _InputOutputArray>

source§

fn as_raw_mut__OutputArray( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl _OutputArrayTrait for BoxedRefMut<'_, _OutputArray>

source§

fn as_raw_mut__OutputArray( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl _OutputArrayTraitConst for BoxedRefMut<'_, _InputOutputArray>

source§

fn as_raw__OutputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn fixed_size(&self) -> Result<bool>

source§

fn fixed_type(&self) -> Result<bool>

source§

fn needed(&self) -> Result<bool>

source§

fn get_mat_ref(&self, i: i32) -> Result<Mat>

C++ default parameters Read more
source§

fn get_mat_ref_def(&self) -> Result<Mat>

source§

fn get_umat_ref(&self, i: i32) -> Result<UMat>

C++ default parameters Read more
source§

fn get_umat_ref_def(&self) -> Result<UMat>

source§

fn get_gpu_mat_ref(&self) -> Result<GpuMat>

source§

fn get_gpu_mat_vec_ref(&self) -> Result<Vector<GpuMat>>

source§

fn get_o_gl_buffer_ref(&self) -> Result<Buffer>

source§

fn get_host_mem_ref(&self) -> Result<HostMem>

source§

fn create_size( &self, sz: Size, typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask ) -> Result<()>

C++ default parameters Read more
source§

fn create_size_def(&self, sz: Size, typ: i32) -> Result<()>

source§

fn create( &self, rows: i32, cols: i32, typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask ) -> Result<()>

C++ default parameters Read more
source§

fn create_def(&self, rows: i32, cols: i32, typ: i32) -> Result<()>

source§

fn create_nd( &self, size: &[i32], typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask ) -> Result<()>

C++ default parameters Read more
source§

fn create_nd_def(&self, size: &[i32], typ: i32) -> Result<()>

source§

unsafe fn create_same_size( &self, arr: &impl ToInputArray, mtype: i32 ) -> Result<()>

source§

fn release(&self) -> Result<()>

source§

fn clear(&self) -> Result<()>

source§

fn set_to( &self, value: &impl ToInputArray, mask: &impl ToInputArray ) -> Result<()>

C++ default parameters Read more
source§

fn set_to_def(&self, value: &impl ToInputArray) -> Result<()>

source§

fn assign_umat(&self, u: &impl UMatTraitConst) -> Result<()>

source§

fn assign_mat(&self, m: &impl MatTraitConst) -> Result<()>

source§

fn assign_umat_vec(&self, v: &Vector<UMat>) -> Result<()>

source§

fn assign_mat_vec(&self, v: &Vector<Mat>) -> Result<()>

source§

fn move_umat(&self, u: &mut impl UMatTrait) -> Result<()>

source§

fn move_mat(&self, m: &mut impl MatTrait) -> Result<()>

source§

impl _OutputArrayTraitConst for BoxedRefMut<'_, _OutputArray>

source§

fn as_raw__OutputArray(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

source§

fn fixed_size(&self) -> Result<bool>

source§

fn fixed_type(&self) -> Result<bool>

source§

fn needed(&self) -> Result<bool>

source§

fn get_mat_ref(&self, i: i32) -> Result<Mat>

C++ default parameters Read more
source§

fn get_mat_ref_def(&self) -> Result<Mat>

source§

fn get_umat_ref(&self, i: i32) -> Result<UMat>

C++ default parameters Read more
source§

fn get_umat_ref_def(&self) -> Result<UMat>

source§

fn get_gpu_mat_ref(&self) -> Result<GpuMat>

source§

fn get_gpu_mat_vec_ref(&self) -> Result<Vector<GpuMat>>

source§

fn get_o_gl_buffer_ref(&self) -> Result<Buffer>

source§

fn get_host_mem_ref(&self) -> Result<HostMem>

source§

fn create_size( &self, sz: Size, typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask ) -> Result<()>

C++ default parameters Read more
source§

fn create_size_def(&self, sz: Size, typ: i32) -> Result<()>

source§

fn create( &self, rows: i32, cols: i32, typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask ) -> Result<()>

C++ default parameters Read more
source§

fn create_def(&self, rows: i32, cols: i32, typ: i32) -> Result<()>

source§

fn create_nd( &self, size: &[i32], typ: i32, i: i32, allow_transposed: bool, fixed_depth_mask: _OutputArray_DepthMask ) -> Result<()>

C++ default parameters Read more
source§

fn create_nd_def(&self, size: &[i32], typ: i32) -> Result<()>

source§

unsafe fn create_same_size( &self, arr: &impl ToInputArray, mtype: i32 ) -> Result<()>

source§

fn release(&self) -> Result<()>

source§

fn clear(&self) -> Result<()>

source§

fn set_to( &self, value: &impl ToInputArray, mask: &impl ToInputArray ) -> Result<()>

C++ default parameters Read more
source§

fn set_to_def(&self, value: &impl ToInputArray) -> Result<()>

source§

fn assign_umat(&self, u: &impl UMatTraitConst) -> Result<()>

source§

fn assign_mat(&self, m: &impl MatTraitConst) -> Result<()>

source§

fn assign_umat_vec(&self, v: &Vector<UMat>) -> Result<()>

source§

fn assign_mat_vec(&self, v: &Vector<Mat>) -> Result<()>

source§

fn move_umat(&self, u: &mut impl UMatTrait) -> Result<()>

source§

fn move_mat(&self, m: &mut impl MatTrait) -> Result<()>

source§

impl _RangeTrait for BoxedRefMut<'_, _Range>

source§

fn as_raw_mut__Range( &mut self ) -> <Self as OpenCVTypeExternContainer>::ExternSendMut

source§

impl _RangeTraitConst for BoxedRefMut<'_, _Range>

source§

fn as_raw__Range(&self) -> <Self as OpenCVTypeExternContainer>::ExternSend

Auto Trait Implementations§

§

impl<'r, T> RefUnwindSafe for BoxedRefMut<'r, T>
where T: RefUnwindSafe,

§

impl<'r, T> Send for BoxedRefMut<'r, T>
where T: Send,

§

impl<'r, T> Sync for BoxedRefMut<'r, T>
where T: Sync,

§

impl<'r, T> Unpin for BoxedRefMut<'r, T>
where T: Unpin,

§

impl<'r, T> !UnwindSafe for BoxedRefMut<'r, T>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> MatConstIteratorTraitManual for T

source§

impl<T> MatTraitConstManual for T
where T: MatTraitConst + ?Sized,

source§

unsafe fn at_unchecked<T: DataType>(&self, i0: i32) -> Result<&T>

Like Mat::at() but performs no bounds or type checks Read more
source§

unsafe fn at_2d_unchecked<T: DataType>(&self, row: i32, col: i32) -> Result<&T>

Like Mat::at_2d() but performs no bounds or type checks Read more
source§

unsafe fn at_pt_unchecked<T: DataType>(&self, pt: Point) -> Result<&T>

Like Mat::at_pt() but performs no bounds or type checks Read more
source§

unsafe fn at_3d_unchecked<T: DataType>( &self, i0: i32, i1: i32, i2: i32 ) -> Result<&T>

Like Mat::at_3d() but performs no bounds or type checks Read more
source§

unsafe fn at_nd_unchecked<T: DataType>(&self, idx: &[i32]) -> Result<&T>

Like Mat::at_nd() but performs no bounds or type checks Read more
source§

fn at_row<T: DataType>(&self, row: i32) -> Result<&[T]>

Return a complete read-only row
source§

unsafe fn at_row_unchecked<T: DataType>(&self, row: i32) -> Result<&[T]>

Like Mat::at_row() but performs no bounds or type checks Read more
source§

fn is_allocated(&self) -> bool

source§

fn data_bytes(&self) -> Result<&[u8]>

Returns underlying data array as byte slice, Mat must be continuous.
source§

fn data_typed<T: DataType>(&self) -> Result<&[T]>

source§

unsafe fn data_typed_unchecked<T: DataType>(&self) -> Result<&[T]>

Safety Read more
source§

fn to_vec_2d<T: DataType>(&self) -> Result<Vec<Vec<T>>>

source§

fn iter<T: DataType>(&self) -> Result<MatIter<'_, T>>
where Self: Sized,

Returns an iterator over Mat elements and their positions
source§

fn try_into_typed<T: DataType>(self) -> Result<Mat_<T>>
where Self: Sized, Mat_<T>: TryFrom<Self, Error = Error>,

source§

impl<T> MatTraitManual for T
where T: MatTrait + ?Sized,

source§

unsafe fn at_unchecked_mut<T: DataType>(&mut self, i0: i32) -> Result<&mut T>

Like Mat::at_mut() but performs no bounds or type checks Read more
source§

unsafe fn at_2d_unchecked_mut<T: DataType>( &mut self, row: i32, col: i32 ) -> Result<&mut T>

Like Mat::at_2d_mut() but performs no bounds or type checks Read more
source§

unsafe fn at_pt_unchecked_mut<T: DataType>( &mut self, pt: Point ) -> Result<&mut T>

Like Mat::at_pt_mut() but performs no bounds or type checks Read more
source§

unsafe fn at_3d_unchecked_mut<T: DataType>( &mut self, i0: i32, i1: i32, i2: i32 ) -> Result<&mut T>

Like Mat::at_3d_mut() but performs no bounds or type checks Read more
source§

unsafe fn at_nd_unchecked_mut<T: DataType>( &mut self, idx: &[i32] ) -> Result<&mut T>

Like Mat::at_nd_mut() but performs no bounds or type checks Read more
source§

fn at_row_mut<T: DataType>(&mut self, row: i32) -> Result<&mut [T]>

Return a complete writeable row
source§

unsafe fn at_row_unchecked_mut<T: DataType>( &mut self, row: i32 ) -> Result<&mut [T]>

Like Mat::at_row_mut() but performs no bounds or type checks Read more
source§

fn data_bytes_mut(&mut self) -> Result<&mut [u8]>

Returns underlying data array as mutable byte slice, Mat must be continuous.
source§

fn data_typed_mut<T: DataType>(&mut self) -> Result<&mut [T]>

source§

unsafe fn data_typed_unchecked_mut<T: DataType>(&mut self) -> Result<&mut [T]>

Safety Read more
source§

fn iter_mut<T: DataType>(&mut self) -> Result<MatIterMut<'_, T>>
where Self: Sized,

Returns a mutable iterator over Mat elements and their positions
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.